I have a site that uses sessions. Now these are maintained from page to page, and they are used to maintain identity. If one of them, status, is false, then you are returned back to the login page.
The first time you login, you can go to every page, except one. This page is very weird….. you see, at the top of every page i have the tester to see if status is false. It’s tested before the html tag.
Now on that page I put another tester, in the body. If status was false, then it would display some message. Of course, if status was false, you shouldn’t even be able to visit the page.
There’s a button that sends a post back to the same page, and some information is SUPPOSED to show. However, when the post is sent the first time, you are shot back to the login page.
The next time you login and do the same thing, it works out, and the tester on the problem page says that the session is true. I really don’t get it. It keeps working every time you login and logoff after that.
Does anyone know what might be going on?