note 23484 deleted from function.unset by didou
| From: | didou@php.net | Date: | Tue, 19 Aug 2003 15:49:13 +0000 |
| Subject: | note 23484 deleted from function.unset by didou | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-54693@lists.php.net to get a copy of this message | ||
Note Submitter: AlberT@SuperAlberT.it
----
It is absolutely wrong !!
session_unregister() must be NEVER used when you use $_SESSSION superglobal array.
To unset a session variable inside a function use:
unset($GLOBALS['_SESSION']['foo_var']);