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" <[EMAIL PROTECTED]> skrev i
diskussionsgruppsmeddelandet:[EMAIL PROTECTED]
> 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
> [EMAIL PROTECTED]
> 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: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> To contact the list administrators, e-mail: [EMAIL PROTECTED]
>
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]