* Thus wrote Tim Winters ([EMAIL PROTECTED]): > Thanks, > > So what does session_unset() do then?
John overlooked that function, and instead looped through the variables in php instead. This would be used if you have register_globals on and choose to use sessions insecurely. > > -----Original Message----- > From: CPT John W. Holmes [mailto:[EMAIL PROTECTED] > Sent: August 19, 2003 5:11 PM > To: [EMAIL PROTECTED]; [EMAIL PROTECTED] > Subject: Re: [PHP] deleting session variables > > > If register_globals is ON and you want to get rid of $val1, $val2, > $val3, > etc... then: > > foreach($_SESSION as $key => $value) > { unset($$key); } > Curt -- "I used to think I was indecisive, but now I'm not so sure." -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php