"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
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
2 matches
Mail list logo