Website timeout featurehttp://forums.asp.net/t/1793403.aspx/1?Website+timeout+featureMon, 16 Apr 2012 14:43:54 -040017934034934926http://forums.asp.net/p/1793403/4934926.aspx/1?Website+timeout+featureWebsite timeout feature <p>Hello</p> <p>Im 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?</p> <p>Thanks</p> 2012-04-16T14:28:07-04:004934940http://forums.asp.net/p/1793403/4934940.aspx/1?Re+Website+timeout+featureRe: Website timeout feature <p>try this</p> <pre class="prettyprint">&lt;system.web&gt; &lt;sessionState mode=&quot;InProc&quot; timeout=&quot;20/&gt; &lt;/system.web</pre> <p><br> <br> </p> <p></p> 2012-04-16T14:33:30-04:004934961http://forums.asp.net/p/1793403/4934961.aspx/1?Re+Website+timeout+featureRe: Website timeout feature <p>Default session timeout in IIS is 20 Minutes.</p> <p>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</p> <p>In Login page</p> <pre class="prettyprint">Session[&quot;UserName&quot;]=strLoggedInUser;</pre> <p>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</p> <pre class="prettyprint">if(Session["UserName"]== null) { Response.Redirect("Login.aspx"); }</pre> <p>Let me&nbsp;know&nbsp;if you need more details.<br> <br> &nbsp;</p> 2012-04-16T14:43:54-04:00