Re: session_regenerate_id()

From: Date: Wed, 29 Oct 2003 18:44:59 +0000
Subject: Re: session_regenerate_id()
References: 1 2 3  Groups: php.general 
Request: Send a blank email to php-general+get-168033@lists.php.net to get a copy of this message
From: "Alexander Mueller" <alexm@gmx.at> > "Cpt John W. Holmes" wrote: > > > > PHP 4.3.2 created a new session ID, but it didn't resend the cookie. So the > > next request would include the old session ID again from the cookie. > > I wonder what it is then good for. Changing the id internally without > notifying the client does not make much sense IMHO. If you're using sessions in the URL, then it works just fine. > > What are you trying to do? > > Changing the session id upon a login to prevent referal attacks. So, if PHP is less than 4.3.3, you need to use setcookie() to reset the value of the session id yourself. If you're using 4.3.3, then you don't have to worry about it. ---John Holmes...

« previous php.general (#168033) next »