This is provably an odd posting, since I need help getting to work, something which already works...
The code detects wether someone is already logged in and if so, it skips the logging in process which is HTML code after the end of the php code. (not posted here to save space) and sends you to the next page directly.
And here is the kicker, it works perfectly taking into account that the next page sets the value of login to lets say 'okdokey'.
It works just fine in my Windows XP Pro, IIS 5.1 with PHP 4.3.2.2, and mySQL
But in the production server on the 'Net with Linux, Apache, PHP, and mySQL I get no errors but the skipping does not happen.
So can anyone help me? Does the difference in behavior arise from the OS, the web server, some setting?? Any guesses?
Up to this problem all session variables seemed to be working just fine, while we had observed some irregularities with long lived sessions that seemed to be corrected with some session_unset() like the one in the code.
Thanks a lot for your help.