note 23757 added to function.unset

From: Date: Fri, 26 Jul 2002 22:59:44 +0000
Subject: note 23757 added to function.unset
Groups: php.notes 
Request: Send a blank email to php-notes+get-33617@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? ;-) -- http://www.php.net/manual/en/function.unset.php http://master.php.net/manage/user-notes.php?action=edit+23757 http://master.php.net/manage/user-notes.php?action=delete+23757 http://master.php.net/manage/user-notes.php?action=reject+23757

« previous php.notes (#33617) next »