Ending sessions when the browser is closed
Posted: Thu Jun 19, 2003 6:05 pm
[Admin Edit: Moved from modcp.php?t=9726]
SBukoski:- Hey can you provide some kind of sample code. I am also in the same boat as the user who posted this message. How can I delete or force session to revalidate when a user doesnt log out, but closes the browser.
Another question I have is, how can I force the session to expire after certain time of inactivity, for ex:- something similar to yahoo mail or hotmail. If a user logs in, but is inactive for certain amount of time, and after that time, when the user clicks on one of the links, he has to login to the site, since his session has expired. Thank you for any help or sample code. Thank You
SBukoski:- Hey can you provide some kind of sample code. I am also in the same boat as the user who posted this message. How can I delete or force session to revalidate when a user doesnt log out, but closes the browser.
Another question I have is, how can I force the session to expire after certain time of inactivity, for ex:- something similar to yahoo mail or hotmail. If a user logs in, but is inactive for certain amount of time, and after that time, when the user clicks on one of the links, he has to login to the site, since his session has expired. Thank you for any help or sample code. Thank You