Re: RE: Session Problems

From: Date: Wed, 05 Jul 2000 14:46:04 +0000
Subject: Re: RE: Session Problems
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-4959@lists.php.net to get a copy of this message
On Wed, 5 Jul 2000, Thomas Deliduka wrote: > This is the output of my form: > > Posted Variable from the form: c0e0766c110f6a373cf09605d3dcddf9 > after the session started I get this ID: 383bfe2fbfb1e849e8e5aa1cd159f606 > Then Variables registered in session: 383bfe2fbfb1e849e8e5aa1cd159f606 > And then I do "echo SID;":PHPSESSID=383bfe2fbfb1e849e8e5aa1cd159f606 Did you try session_id() before any other session_* functions in your script ? I mean before you even try session_start() or session_register() ? HZ > > Now, if I force the session_id using session_id($PHPSESSID); with $PHPSESSID > being the posted session value, I get this output: > > Posted Variable from form: 4858f5f1b2e6766c30f83ec0b055d54f > after the session started I get this ID: 92e7f91bd221927d70696d280d351d5b > session id forced then echo session_id(): 4858f5f1b2e6766c30f83ec0b055d54f > Then Variables registered in session: 4858f5f1b2e6766c30f83ec0b055d54f > And then I do "echo SID;":PHPSESSID=92e7f91bd221927d70696d280d351d5b > > Oh! And a curious thing. Even though the form value clearly shows > 4858f5f1b2e6766c30f83ec0b055d54f in the form field, when I post the form > again for kicks the posted variable becomes 92e7f91bd221927d70696d280d351d5b > so it seems the cookie which is being accepted is overwriting the value. > > -- > > Thomas Deliduka > IT Manager > ------------------------- > New Eve Media > The Solution To Your Internet Angst > http://www.neweve.com/ > > > > -- > PHP General Mailing List (http://www.php.net/) > To unsubscribe, e-mail: php-general-unsubscribe@lists.php.net > For additional commands, e-mail: php-general-help@lists.php.net > To contact the list administrators, e-mail: php-list-admin@lists.php.net >

« previous php.general (#4959) next »