Harpreet wrote:
If a Session is left for an hour or so, the message "Database Invalid" will be displayed on the next attempt to navigate to a page. Would it be possible to jump back to the login page? Or better still, display a popup with the text "Session has expired, pleas log in". When OK is pressed we would go back to the login screen. Let me know if any one has nay ideas.
Presumably when they log in you are storing something in the session to say they have logged in? If not then do. Then on each page check that that session variable exists. If it does you're fine, if not then they've either not logged in or the session has expired.
-Stut -- PHP Windows Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php