Re: Expired Session Variables
From: J. Baute (WUPYRDEDAWJD_at_spammotel.com)
Date: 03/29/04
- Next message: Keith: "Modifying Code"
- Previous message: Fahad: "Adding bodypart object to a message"
- In reply to: Keith: "Re: Expired Session Variables"
- Messages sorted by: [ date ] [ thread ]
Date: Mon, 29 Mar 2004 09:51:39 +0200
"Keith" <@.> wrote in message news:eUVLqB3EEHA.3372@TK2MSFTNGP10.phx.gbl...
> I want to do this to check when the username session variable has expired,
> and thus their login session has expired. Then I will redirect them to a
> different page than if they simplu had not logged in.
A common way to do this is simply redirect every expired or not logged in
user to the same login page, cause there isn't really a way to detect the
difference.
Something that could work to some degree is accompany your session cookie
(managed by ASP) with a custom cookie which expires "later" than your
session cookie.
Let's say your session expired after 20 minutes. You could create another
cookie which expires after 30 minutes, which you use to check if the user
logged on in the last 30 minutes. This gives you a timeframe of 10 minutes
where your expired session will be detected. After those 30 minutes, the
user will be considered as "never logged in".
But personnaly I wouldn't bother doing this, I think it will only confuse
the user.
- Next message: Keith: "Modifying Code"
- Previous message: Fahad: "Adding bodypart object to a message"
- In reply to: Keith: "Re: Expired Session Variables"
- Messages sorted by: [ date ] [ thread ]
Relevant Pages
|