Check session state

  • Thread starter Thread starter MattB
  • Start date Start date
M

MattB

Is there a simple way to see if a session is expired? I'd like to just
have an easy Boolean test (IsExpired or Not IssExpired kind of thing)
instead of looking for specific values in the session state. Is there a
method to just simple do that? Thanks!
 
Why do you need to do this? Can't you use HttpSessionState function
IsNewSession:-

"Gets a value indicating whether the session was created with the current
request."

So that will tell you if you are in a new session i.e. your old one expired.

Andy Mortimer [MS]
Please do not send email directly to this alias. This alias is for
newsgroup purposes only

This posting is provided "AS IS" with no warranties, and confers no rights.
OR if you wish to include a script sample in your post please add "Use of
included script samples are subject to the terms specified at
http://www.microsoft.com/info/cpyright.htm"
 
Back
Top