I try to use session_start() in a file called login.php. I keep in the variable $SESSION an email account. Then by link from this page a user can logoff so i call the file logoff.php. In the logoff file i call the session_start() function and try to use the $SESSION variable but it tells me that there is nothing in it! Please give me a hint on what i am doing wrong! Thanks a lot!
Are you setting a session name?
session_name("mysession"); session_start();
Keep the session_name the same across pages taht use the same session.
show us some code maybe?
How are you setting the e-mail to the session variable? Should be something like:
$_SESSION['email']="you@whatever.ca";
Then in logoff you would access the variable this way:
echo $_SESSION['email'];