note 107788 deleted from session.examples.basic by danbrown
| From: | danbrown@php.net | Date: | Thu, 10 May 2012 18:27:50 +0000 |
| Subject: | note 107788 deleted from session.examples.basic by danbrown | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-187758@lists.php.net to get a copy of this message | ||
Note Submitter: Anonymous
----
re: above "caution" messages eg. Caution
Do NOT unset the whole $_SESSION with unset($_SESSION) as this will disable the registering of
session variables through the $_SESSION superglobal.
If you are never supposed to do it, php should either disallow it, or treat it as a warning or
error level condition. Documenting don't ever do something the php system silently accepts is
not an effective communication or implementation. (imho)