I'm having some trouble with sessions and Etomite.
Here's what I'm trying to do:
I have a job platform running parallely to an Etomite site. The Etomite site is basically handling the more or less static content, front page, contact pages etc. The job platform is completely inpedendent from it and runs from home brewn PHP scripts with MySQL database.
In order to add new job offerings, people can register an log on to this platform. When doing so, a session is registered called user_id.
In order to replace the "login" button with a "logout" button, I check if the session is active. That works fine with my scripts, Etomite however seems to ignore the existing session. The session is there and active for sure. I tried with a snippet like this
if(!isset($_SESSION['user_id'])){
$output .= "Login";
} else {
$output .= "Logout";
}
return $output;but Etomite will always display "Login". When I switch back to a page that is generated from my scripts, it still works (so accessing an Etomite page doesn't destroy the session or something).
I'm lacking understanding of Etomite's core, so I'm pretty stuck with this. I'd really appreciate some hints on what might be wrong with this.
Many thanks in advance! :)
This post has been edited by Psycho Mantis: 19 May 2009 - 05:01 PM


Help
Back to top
MultiQuote









