Re: Destroying a session!!!

From: Date: Tue, 14 May 2002 19:43:47 +0000
Subject: Re: Destroying a session!!!
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-97615@lists.php.net to get a copy of this message
The cookie that stores the session id will live until the browser window is closed. You can apply a different lifetime to the cookie by using session_set_cookie_params() but I doubt that'll do what you want. Just use the session_id() function to change the session id manually when you register your variables. This is a good idea even if you're not using sessions for a secure login system. -Kevin ----- Original Message ----- From: "Gabor Niederlaender" <gabor.niederlaender@wu-wien.ac.at> To: <php-general@lists.php.net> Sent: Tuesday, May 14, 2002 12:07 PM Subject: [PHP] Destroying a session!!! > Hi all! > > I have seen a couple of discussions on the same topic, but even so I > do not really know how to destroy sessions. > I would like to achieve, that a second login after a logout generates > a wholly new session, with a new session id. > > I have tried: > > session_unset(); > session_destroy(); > > and after every logout and re-login I get the same session... > What is the solution? > > Thanks and > Best regards, > Gabor > > -- > PHP General Mailing List (http://www.php.net/) > To unsubscribe, visit: http://www.php.net/unsub.php > >

« previous php.general (#97615) next »