note 67272 added to function.session-unset
| From: | php-general at lists dot php dot net | Date: | Tue, 06 Jun 2006 20:29:40 +0000 |
| Subject: | note 67272 added to function.session-unset | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-113372@lists.php.net to get a copy of this message | ||
What I discover is that the "session_unset" is for older deprecated code that does not use
$_SESSION.
Also, what I discovered is we need to move the "$_SESSION = array();" to before the
session functions.
Like this
--snip--
$_SESSION = array();
session_unset();
session_destroy();
--snip--
or you'll sometime get PHP's segmentation fault that bring Apache down to it's knee
making the web pages unresponsive.
----
Server IP: 216.194.113.175
Probable Submitter: 64.31.141.2
----
X-Spam-Status: No, hits=3.1 required=5.0 tests=DATE_MISSING,FROM_NO_LOWER
autolearn=no version=2.64
----
Manual Page -- http://www.php.net/manual/en/function.session-unset.php
Edit -- http://master.php.net/note/edit/67272
Del: integrated -- http://master.php.net/note/delete/67272/integrated
Del: useless -- http://master.php.net/note/delete/67272/useless
Del: bad code -- http://master.php.net/note/delete/67272/bad+code
Del: spam -- http://master.php.net/note/delete/67272/spam
Del: non-english -- http://master.php.net/note/delete/67272/non-english
Del: in docs -- http://master.php.net/note/delete/67272/in+docs
Del: other reasons-- http://master.php.net/note/delete/67272
Reject -- http://master.php.net/note/reject/67272
Search -- http://master.php.net/manage/user-notes.php