note 49310 deleted from function.session-unset by betz

From: Date: Sat, 02 Jul 2005 09:27:29 +0000
Subject: note 49310 deleted from function.session-unset by betz
References: 1  Groups: php.notes 
Request: Send a blank email to php-notes+get-91298@lists.php.net to get a copy of this message
Note Submitter: Drew Bradford - drew at drewbradford dot com ---- You don't have to call session_destroy automatically performs the actions of the session_unset. When you call session_unset, the session variable ($_SESSION) and corresponding session_id still exist. So you're starting from scratch (no session variables), but you have the pre-existing session. When you call session_destroy, it unsets all session variables, but also destroys the session itself, so PHP no longer tracks the corresponding session_id.

« previous php.notes (#91298) next »