title: ASP.NET Session State not working in Web.config as well as Global.asax
body: <p>I have Admin Page wherein I use to do some update work for my site. The problem is the session will expire within a minute or 30 seconds and will logout the user. I have set the Session in Web.Config of the root folder as well as in the Web.Config inside the Admin folder but still the session gets expired soon. I have set it to 60 minutes but it only lasts for 30 seconds or within a minute. Here is my <strong>web.config content of root folder</strong></p>
  
  <pre><code>&lt;sessionState timeout="60" mode="InProc" 
        cookieless="false"&gt;&lt;/sessionState&gt;
  
  
      &lt;customErrors mode="Off"&gt;
      &lt;/customErrors&gt;
      &lt;trace enabled="true" /&gt;
      &lt;authentication mode="Forms"&gt;
                 &lt;forms
      protection="All"
      timeout="120"
      domain="www.marpallichande.in"
      slidingExpiration="true"
      name="auth_cookie" /&gt;  
  
      &lt;/authentication&gt;
  </code></pre>
  
  <p><strong>and this is my setting of web.cofing file inside the Admin folder</strong></p>
  
  <pre><code>&lt;sessionState timeout="60" mode="InProc"
        cookieless="false"&gt;&lt;/sessionState&gt;
  </code></pre>
  
  <p><strong>and this is my setting in Global.asax file under Session_Start method</strong></p>
  
  <pre><code>Session.Timeout=60;
  </code></pre>
  
  <p>I am not getting how the session is getting expired so soon or is there any other reason for been getting logged out other than session.</p>