While not comletely foolproof I have done using a cookie that keeps track of
the clients view of whether they are logged in or not. If the cookie says they
are logged in, but there is no session, then the session has timed out.
Just need to set it to something to indicate they are logged in,
It depends on how you are handling the logout. If on
login you set Session.Userid, for example, to their true
userid and on logout you set it to something like '9',
that could flag the fact they have logged out but their
session has not expired.
Just closing the browser doesn't necessarily
I have an application where we want to tell the user that their
session has timed out through inactivity (if it has).
I know how to detect if a session no longer exists, but how do you
tell if it's timed out (rather than the person closing the browser or
logging out)?
--
Cheers
Mike Kear
, 2004 7:41 AM
To: CF-Talk
Subject: How to detect if a session has timed out?
I have an application where we want to tell the user that their session
has timed out through inactivity (if it has).
I know how to detect if a session no longer exists, but how do you tell
if it's timed out (rather than
to detect if a session has timed out?
From: Mike Kear [EMAIL PROTECTED]
Date: Mon, 20 Dec 2004 00:41:25 +1100
Thread:
http://www.houseoffusion.com/cf_lists/index.cfm/method=messagesthreadid=37228forumid=4#188190
I have an application where we want to tell the user that their
session has timed out
Micheal's right - you'd have to warn them BEFORE the session times out to do
anything, after it's timed out it's gone and can't be recovered.
If you want to use JavaScript I've a piece of script that will do this for
you - in fact it could automatically keep the session active as well.
The
6 matches
Mail list logo