Re: Eliminate a specific session variable
| From: | Melih Onvural | Date: | Tue, 24 Jun 2003 20:24:56 +0000 |
| Subject: | Re: Eliminate a specific session variable | ||
| Groups: | php.windows | ||
| Request: | Send a blank email to php-windows+get-20542@lists.php.net to get a copy of this message | ||
If you set its expiration date to moments before the logout button is clicked then the session will
die.
melih
>
> From: Matt Babineau <matt@criticalcode.com>
> Date: 2003/06/24 Tue PM 02:40:20 EDT
> To: php-windows@lists.php.net <php-windows@lists.php.net>
> Subject: [PHP-WIN] Eliminate a specific session variable
>
> Hi All-
>
> I'm playing around with an authentication system and I can't figure out how to
> "Log" someone out of the system. Wha tI would like to do is be able to check if the
> session variable $_SESSION["logged_in"] exists. But if I unset() that session variable is
> still exists but it seems like the variable is just set to blank so an isset() check of that
> variable returns true, so they are still "logged_in". Is there any way to kill a single
> session variable using destroy() perhaps or will that nuke the entire session?
>
> Thx-
> Matt
>
> --
> PHP Windows Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
>
>