Re: Unsetting $_SESSION variables?
| From: | CPT John W. Holmes | Date: | Fri, 02 May 2003 14:11:49 +0000 |
| Subject: | Re: Unsetting $_SESSION variables? | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-146126@lists.php.net to get a copy of this message | ||
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