note 24385 deleted from function.session-unregister by sniper

From: Date: Thu, 31 Oct 2002 00:51:23 +0000
Subject: note 24385 deleted from function.session-unregister by sniper
References: 1  Groups: php.notes 
Request: Send a blank email to php-notes+get-38794@lists.php.net to get a copy of this message
Even with register_globals turned off, you MUST use session_unregister() instead of unset(). (At least on Win2kServer) If you use unset() on $_SESSION or any of its direct contents even once, it disassociates the entire $_SESSION array from the session file, and therefore any subsequent changes to any other session variables WILL NOT BE SAVED even if you call session_write_close().

« previous php.notes (#38794) next »