note 67272 deleted from function.session-unset by bjori

From: Date: Tue, 06 Jun 2006 21:37:27 +0000
Subject: note 67272 deleted from function.session-unset by bjori
References: 1  Groups: php.notes 
Request: Send a blank email to php-notes+get-113388@lists.php.net to get a copy of this message
Note Submitter: Reason: bad code ---- 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.

« previous php.notes (#113388) next »