note 85743 deleted from function.session-destroy by googleguy

From: Date: Fri, 14 Sep 2012 05:17:26 +0000
Subject: note 85743 deleted from function.session-destroy by googleguy
References: 1  Groups: php.notes 
Request: Send a blank email to php-notes+get-190742@lists.php.net to get a copy of this message
Note Submitter: yesmarklapointe at hotmail dot com ---- I ran an experiment. Firefox3 and IE7 both behave the same on my machine. The following statements clear out the variables immediately: session_unset() $_SESSION = array() unset($_SESSION['whatever']) But if you are intent upon using session_destroy(), know that it only empties out the variables when the page is reloaded or redirected to some other page. As long as it's the same page, the variables are still usable after invoking session_destroy().

« previous php.notes (#190742) next »