[PHP] Re: Automatic log out

2005-12-01 Thread James Benson
"it would also be nice to stop the pages displaying after a time out when a user presses the back button!" For that you would need to destroy the session data, use session_destroy(); http://php.net/session_destroy -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: htt

[PHP] Re: Automatic log out

2005-12-01 Thread James Benson
Store the last time someone accessed their session into the $_SESSION array then when requesting a protected page just check x amount of time has not passed, if x amount has time has passed redirect to a login page or re-enter their user password small example you would use on the top of eve