Page 1 of 1

Catch session expiry

Posted: Wed Jul 27, 2005 6:58 am
by Stryks
Hey all,

Just wondering what the best way would be to catch an expired session and differentiate it from a new visitor.

What I mean is, I have a user who is logged in and they have some information stored in a session. If they sit on the same page for more than 15 minutes or so, the session will expire and the information is lost.

At this stage they are just ejected out to the base page with an error that they do not have sufficient auth to view the page they requested (to stop unauthorised users just guessing filenames till they find the admin pages).

What I would like is if their session expired, they were told that their session expired, instead of that they dont have authorisation.

Any suggestions.