S
Simon
Hi all,
Any help with this would be much appreciated:
I have a site where the session needs to timeout because of security
concerns. I want to send the user back to the login page if the session is
expired.
Whats happening at the moment is that objects that exisit in the Session are
being accessed when the session has expired.
I know I could do an if Session["whatever"] != null or something similar to
detect whether the object is or isnt empty but there are many objects that
would need to be checked and I'll bet that some of them can be null quite
legitimately without needing the user to sign in again.
Question: Is there a way of doing something like:
if(Session.IsExpired){
// Redirect to login
}
else{
// Continue
}
I seem to remember from my university days that this is how you could do
things in java. Very simple - the session is either expired or not. I can't
seem to find an equivelent in ASP.net, which is begining to worry me
:-(
Thanks to anyone who can advise.
Take care
Simon
Any help with this would be much appreciated:
I have a site where the session needs to timeout because of security
concerns. I want to send the user back to the login page if the session is
expired.
Whats happening at the moment is that objects that exisit in the Session are
being accessed when the session has expired.
I know I could do an if Session["whatever"] != null or something similar to
detect whether the object is or isnt empty but there are many objects that
would need to be checked and I'll bet that some of them can be null quite
legitimately without needing the user to sign in again.
Question: Is there a way of doing something like:
if(Session.IsExpired){
// Redirect to login
}
else{
// Continue
}
I seem to remember from my university days that this is how you could do
things in java. Very simple - the session is either expired or not. I can't
seem to find an equivelent in ASP.net, which is begining to worry me
:-(
Thanks to anyone who can advise.
Take care
Simon