session_start help
Posted: Mon May 06, 2002 3:42 pm
Howdy all! Can someone enlighten me about handling sessions with session_start and the other session functions? I have used session_start on all the pages I need session control for, and I have set the session variable in my login code. Likewise, I check the variable using session_is_registered("variable") to produce output if returned true. My problem is this...if a user quits out of their browser without logging-out via my site's logout page, which uses session_unregister("variable") and session_destroy, they are unable to use the site successfully upon next login without first going through the logout page. They can log in, but when any other page is attempted the session isn't read by the page and they are required to login.
Additionally, and this is a sidenote to my main problem above, is there a quick method to controlling the session when the user exits the page at all (i.e. the BACK button)? I'm getting better with PHP, however I've read all the session stuff at PHP.net and still haven't been able to resolve the problem. Thanks!
Additionally, and this is a sidenote to my main problem above, is there a quick method to controlling the session when the user exits the page at all (i.e. the BACK button)? I'm getting better with PHP, however I've read all the session stuff at PHP.net and still haven't been able to resolve the problem. Thanks!