note 23757 deleted from function.unset by dams
| From: | dams@php.net | Date: | Sun, 28 Jul 2002 14:47:24 +0000 |
| Subject: | note 23757 deleted from function.unset by dams | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-33815@lists.php.net to get a copy of this message | ||
OK AlberT, I don't care what you say about not using session_unregister with $_SESSION
variables, but I have to use it.
unset($_SESSION['foo']) DOES NOT WORK!
session_unregister('foo') DOES!
Looking at the session file on the webserver, unset only appears to unset the variable for the
current page, it does not unset it in the session file. session_unregister clears the variable from
the session file.
Could somebody please explain why I have been slamming my head against my desk for the past 4 hours
trying to unset session vars? ;-)