title: How to set session timeout and session idle timeout in asp.net
body: <p>I have a simple question but not able to find solution to it. I have set session timeout of the application in the web.config as :</p>
  
  <pre><code>  &lt;sessionState timeout="30" mode="InProc"/&gt;
  </code></pre>
  
  <p>and its working fine but now I got the requirement that if the user is idle that is, he is not performing any action on the page for one minute his session should get expired. I tried to do it using form authentication as :</p>
  
  <pre><code>&lt;authentication mode="Forms"&gt;
        &lt;forms loginUrl="~/Login.aspx" timeout="1"  slidingExpiration ="false" defaultUrl="login.aspx"/&gt;
      &lt;/authentication&gt;
  </code></pre>
  
  <p>But its now working. Any help would be appreciated.</p>