Re: Destroying a session!!!

From: Date: Tue, 14 May 2002 21:19:36 +0000
Subject: Re: Destroying a session!!!
References: 1 2  Groups: php.general 
Request: Send a blank email to php-general+get-97627@lists.php.net to get a copy of this message
Gabor, after some searching I discovered some wonderful user comments in the session_destroy() page you might want to check out. You have to get dirty with cookies but it may be possible after all. :) http://www.php.net/manual/en/function.session-destroy.php -Kevin ----- Original Message ----- From: "Kevin Stone" <kevin@helpelf.com> To: <php-general@lists.php.net> Sent: Tuesday, May 14, 2002 1:43 PM Subject: Re: [PHP] Destroying a session!!! > 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 > > > > > > > > -- > PHP General Mailing List (http://www.php.net/) > To unsubscribe, visit: http://www.php.net/unsub.php > >

« previous php.general (#97627) next »