Cookies still store old value(Help!!)
| From: | Hendry Sumilo | Date: | Wed, 17 Jan 2001 10:26:29 +0000 |
| Subject: | Cookies still store old value(Help!!) | ||
| Groups: | php.general | ||
| Request: | Send a blank email to php-general+get-35012@lists.php.net to get a copy of this message | ||
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.