You are here: Re: Unusual Session Behaviour « All PHP « IT news, forums, messages
Re: Unusual Session Behaviour

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/

 

Navigation:

[Reply to this message]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация