Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations SkipVought on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Session timeout

Status
Not open for further replies.

pd123

Programmer
May 22, 2001
48
0
0
GB
My application has the session timeout set for say 5 mins.

After 5 mins the session state is lost and I want to re-direct the user back to login page.

Can this be done in 1 place without having to check the session value on the page_load sub-routine in every page?

Many thanks,
pd123
 
IIRC, u can do this with security, if you protect all the pages that cant be seen without being logged in with the password, or logged in token.

But I may be wrong, its been a while since I did asp.net
 
Or, if you have a common include file, such as one that renders a menu, a header, etc. cant you just check for it there, as that page would be called in every page?
 
I do have an include file which renders a header & footer. I shall try putting it in there.

Thanks for your suggestion.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top