SV: [PHP] Cookies still store old value(Help!!)

From: Date: Fri, 19 Jan 2001 14:19:56 +0000
Subject: SV: [PHP] Cookies still store old value(Help!!)
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-35623@lists.php.net to get a copy of this message
Hi I have got a similar problem with session handling. As session handling is handled by cookies this should be the same problem. I handle (as Hendry in a similar way does) user right with session handling. IE ver 5 is no problem. I can have as many session (browers) running as I want. All session id are different. The Netscape sessions however (I have tested on ver 4.51) seems to share the same cookie. The different browser-sessions (yes, on the same computer...) are handled as _one_ session by php-session handling. And hence user B is getting the rights of user A as Hendry descibes it, if user A has logged on before user B in a different browser. The session is released however when all browser-sessions have exited. Is this a bug in Netscape or php-handling? best regards Håkan "Hendry Sumilo" <hsumilo@hotmail.com> skrev i diskussionsgruppsmeddelandet:F217pfkNsjUHQHh2wLC0000096c@hotmail.com... > Dear Expert, > > I have to store user detail and password in the cookies so that i can detect > if particular user is allowed to enter certain website > Example is like this: > > User "A" is allowed to enter student page > User "B" is allowed to enter lecturer page > > Both have to enter password with login at login page > > When User "A" enter ,the cookies will store User "A" name,when he enters the > lecturer page,he will be directed to login page again(because he is not > allowed to enter lecturer page) and so do User "B". > BUT THE PROBLEM HAPPENS LIKE THIS: > When User "A" enters ,and then User "B" enters,User "B" CAN ENTER > THE > STUDENT PAGE AND THE COOKIES STORE USER USER "A" VALUE.BUT WHEN I REFRESH IT > ,THE COOKIES WILL STORE NOTHING AND REDIRECT TO LOGIN PAGE. > Can i know what the problem is? > > Thank you very much,it is really annoying me because someone can enter other > page if other has used that before > > > Sincerely Yours > > Hendry Sumilo > hsumilo@hotmail.com > http://members.tripodasia.com.my/hsumilo > > _________________________________________________________________________ > Get Your Private, Free E-mail from MSN Hotmail at > http://www.hotmail.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 (#35623) next »