note 77926 deleted from function.unset by sobak
| From: | sobak@php.net | Date: | Tue, 22 Nov 2016 10:31:40 +0000 |
| Subject: | note 77926 deleted from function.unset by sobak | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-207509@lists.php.net to get a copy of this message | ||
Note Submitter: gerry+phpnet at buzka dot com
----
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();