|
Posted by Steve Belanger on 04/16/07 20:16
not sure if that will help, but if PHP was set to use cookies on client side
to save session, and the user doesn't have cookies enabled, it might pause a
problem.
Steve.
"damezumari" <jannordgreen@gmail.com> wrote in message
news:1176746218.779211.135160@n59g2000hsh.googlegroups.com...
> When a user logs in to my site http://iwantyourquestion.com I set
> $_SESSION['loggedin'] to true if his username and password are OK.
> When he calls a page I check if $_SESSION['loggedin'] is true. If it
> not I ask him to log in.
>
> Every page has at the start:
>
> session_start();
> ob_start();
>
> A user just told me that he was asked to log in again after he entered
> his username and password. If they were incorrect he would be sent
> back to the login page, but that was not what happened. He was asked
> to log in again.
>
> The only reason I can think of is that $_SESSION['loggedin'] was not
> stored correctly. But why not?
>
> When he tried to log in a second time everything worked fine. He was
> allowed in.
>
> Has anyone else experienced this and know why it happens?
>
> Regards,
>
> Jan Nordgreen
>
Navigation:
[Reply to this message]
|