Posted by R. Rajesh Jeba Anbiah on 02/25/06 04:12
John Howie wrote:
> I've found very unusual behavious when using sessions on two different
> servers.
>
> I'm using sessions to handle simple log in. When the form submits the
> values are checked against a MySQL table. If a match exists two session
> variables are created: $_SESSION['db_is_logged_in'] and
> $_SESSION['user']. Each page checks if the session variable
> 'db_is_logged_in' is set and is true, display the page otherwise use
> header to redirect to an error page.
>
> This worked all well and fine locally, and on one other server.
> Recently I moved server and since then the whole authentication process
> has been behaving unusually. Sometimes (when logged in) you are taken
> to the error page, but your username is still displayed in the menu.
> Clicking the link a few more times and eventually the page will display
> correctly.
<snip>
1. Set the error level to the max (if PHP5, use strict too)
2. Post a link, where we can check the source
3. Post a link where we can check the phpinfo
My guess is that there is some caching issue.
--
<?php echo 'Just another PHP saint'; ?>
Email: rrjanbiah-at-Y!com Blog: http://rajeshanbiah.blogspot.com/
[Back to original message]
|