Re: session_destroy have strange effect....

From: Date: Thu, 16 Jan 2003 20:03:58 +0000
Subject: Re: session_destroy have strange effect....
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-131926@lists.php.net to get a copy of this message
Oh never mind. I found a work around to it. I can use the passthru command. Like this... --clip-- passthru("rm -f /tmp/sess_*****") --clip-- "Scott Fletcher" <scott@abcoa.com> wrote in message news:20030116193348.95052.qmail@pb1.pair.com... > session_destroy() do work when I logged out of the website. But if I'm > logged in and open a 2nd browser and try to log in. This where the script I > use to detect exisitng session and destroy it before generating a new one. > Problem is that session_destroy does not work on the 2nd browser... > > So, my question is what is the workaround to using session_destroy() ???? > How do I unset it???? Etc.... > > I tried this one but it had no effect if I'm the 2nd user... > > --------------- > > $_SESSION = array(); > session_destroy(); > > --------------- > >

« previous php.general (#131926) next »