session_unset & session_destroy being called outside of logic.
| From: | Jason Bell | Date: | Thu, 13 Sep 2001 22:12:46 +0000 |
| Subject: | session_unset & session_destroy being called outside of logic. | ||
| Groups: | php.general | ||
| Request: | Send a blank email to php-general+get-67275@lists.php.net to get a copy of this message | ||
Hello all! I am switching a variable to check if a user is logging in or logging out. If the value
of the variable is logout, I want the user to logout, i.e:
case logout:
session_unset();
session_destroy();
$AuthErr = "<FONT SIZE=-1 COLOR=red>Session Terminated</FONT>";
break;
What is happening, is after the user authenticates and logs in, everything looks good, but whenever
the user follows any link, the session gets unset and destroyed. I know that the variable that holds
the logout value isn't even present, so I'm not sure how it's getting called... has
anyone experienced this before? How did you get around it?
Thanks!
Jason