RE: [PHP] deleting session variables

From: Date: Tue, 19 Aug 2003 20:33:06 +0000
Subject: RE: [PHP] deleting session variables
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-160083@lists.php.net to get a copy of this message
Thanks, So what does session_unset() do then? Tim Winters Creative Development Manager Sampling Technologies Incorporated 1600 Bedford Highway, Suite 212 Bedford, Nova Scotia B4A 1E8 www.samplingtechnologies.com webmaster@samplingtechnologies.com csnm@samplingtechnologies.com Office: 902 450 5500 Cell: 902 430 8498 Fax:: 902 484 7115 -----Original Message----- From: CPT John W. Holmes [mailto:holmes072000@charter.net] Sent: August 19, 2003 5:11 PM To: csnm@samplingtechnologies.com; php-general@lists.php.net Subject: Re: [PHP] deleting session variables From: "Tim Winters" <csnm@samplingtechnologies.com> > Is there a way to wipe out all previous session variables with one > command? With register_globals OFF: $_SESSION = array(); If register_globals is ON and you want to get rid of $val1, $val2, $val3, etc... then: foreach($_SESSION as $key => $value) { unset($$key); } ---John Holmes...

« previous php.general (#160083) next »