HttpSessionState timeout

  • Thread starter Thread starter Steve
  • Start date Start date
S

Steve

Is there a property or method that I can check to see if a
HttpSessionState has already timed out or not? I know that the
HttpSessionState.Timeout property gives you the length of the session
before it times out, but I am looking something that will return a
true or false if the session has timed out or not. Thanks.
 
Steve,

Is there a particular reason why you need to do this, rather than adding a
Session_End handler? Bear in mind that if your sever side code is being
executed, then the user must have just accessed your aspx page, and therefore
restarted the session timeout count.

If your server side code takes so long to execute that the session times out
(i'm not certain if this is even possible) then the client browser will have
timed out long before.

Chris.
 
Back
Top