note 77926 added to function.unset
| From: | gerry+phpnet at buzka dot com | Date: | Thu, 20 Sep 2007 04:07:44 +0000 |
| Subject: | note 77926 added to function.unset | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-130620@lists.php.net to get a copy of this message | ||
Quote from http://fr.php.net/session_unset
"Do NOT unset the whole $_SESSION with unset($_SESSION) as this will disable the registering of
session variables through the $_SESSION superglobal."
So basically don't do:
unset($_SESSION)
Instead do:
$_SESSION = array();
----
Server IP: 69.147.83.197
Probable Submitter: 203.59.28.173
----
Manual Page -- http://www.php.net/manual/en/function.unset.php
Edit -- https://master.php.net/note/edit/77926
Del: integrated -- https://master.php.net/note/delete/77926/integrated
Del: useless -- https://master.php.net/note/delete/77926/useless
Del: bad code -- https://master.php.net/note/delete/77926/bad+code
Del: spam -- https://master.php.net/note/delete/77926/spam
Del: non-english -- https://master.php.net/note/delete/77926/non-english
Del: in docs -- https://master.php.net/note/delete/77926/in+docs
Del: other reasons-- https://master.php.net/note/delete/77926
Reject -- https://master.php.net/note/reject/77926
Search -- https://master.php.net/manage/user-notes.php