Re: Unsetting $_SESSION variables?
| From: | Jeff Lewis | Date: | Fri, 02 May 2003 14:27:00 +0000 |
| Subject: | Re: Unsetting $_SESSION variables? | ||
| References: | 1 2 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-146128@lists.php.net to get a copy of this message | ||
Sorry, forgot to put that I had that and same with $_SESSION = array();
It's very odd...I searched for information on the Zeus server in case there
were issues but couldn't find anything on this either.
Jeff
----- Original Message -----
From: "CPT John W. Holmes" <holmes072000@charter.net>
To: "Jeff Lewis" <jeff@hyrum.net>; <php-general@lists.php.net>
Sent: Friday, May 02, 2003 10:11 AM
Subject: Re: [PHP] Unsetting $_SESSION variables?
> unset($_SESSION['valid']);
>
> ---John Holmes...
>
> ----- Original Message -----
> From: "Jeff Lewis" <jeff@hyrum.net>
> To: <php-general@lists.php.net>
> Sent: Friday, May 02, 2003 9:40 AM
> Subject: [PHP] Unsetting $_SESSION variables?
>
>
> I am in the process of trying to clear a session variable and always used
> session_unset() in the past and it worked great. But now we need to use
> unset() for the $_SESSION global.
>
> I have tried all of the following and it seems to not be unsetting, anyone
> have any ideas?
>
> unset($GLOBALS['_SESSION']['valid']);
> unset($valid);
> session_unset();
> session_unregister();
> session_destroy();
>
> I've tried most things suggested on the note of the unset() page in the
> manual but still having no luck. Running PHP 4.1.2 on a Zeus web server.
>
> Jeff
>
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
>
>
>