I’m wondering how I could implement a timeout feature in my website when after a period of non-inveracity from the user for example 20 minutes then this will redirect back to a timed out page?
At the time of user login create a session and check the session on each page loading, if the session value not available redirect to Login Page. Example
In Login page
Session["UserName"]=strLoggedInUser;
And in all the page loading you have to check for the session, if the session is not available redirect to login page, find below sample
fish66
0 Points
13 Posts
Website timeout feature
Apr 16, 2012 02:28 PM|LINK
Hello
I’m wondering how I could implement a timeout feature in my website when after a period of non-inveracity from the user for example 20 minutes then this will redirect back to a timed out page?
Thanks
Honnappa
Participant
1112 Points
534 Posts
Re: Website timeout feature
Apr 16, 2012 02:33 PM|LINK
try this
<system.web> <sessionState mode="InProc" timeout="20/> </system.webMy Profile
Dhinadotnet
Member
544 Points
204 Posts
Re: Website timeout feature
Apr 16, 2012 02:43 PM|LINK
Default session timeout in IIS is 20 Minutes.
At the time of user login create a session and check the session on each page loading, if the session value not available redirect to Login Page. Example
In Login page
And in all the page loading you have to check for the session, if the session is not available redirect to login page, find below sample
if(Session["UserName"]== null) { Response.Redirect("Login.aspx"); }Let me know if you need more details.