title: How to maintain session timeout for long period in asp.net mvc4?
body: <p>I have done some modifications in Web.config and globals.asax file giving some extra time limit, but the session is not working for the given time. Sometimes getting expired very soon.</p>
  
  <p>Web.config:</p>
  
  <pre><code> &lt;sessionState mode="InProc" customProvider="DefaultSessionProvider" timeout="60000"/&gt;
  
   &lt;authentication mode="Forms"&gt;
        &lt;forms loginUrl="~/Home/Login" timeout="28880"/&gt;
   &lt;/authentication&gt;
  </code></pre>
  
  <p>Global.asax/session_start():</p>
  
  <pre><code> Session.Timeout = 1200;
  </code></pre>
  
  <p>I added namespaces for the session wherever required, but still the session problem persists, session is stateless after all coding is done.</p>
  
  <p>Please can anyone suggest a proper solution, or if my flow is ambiguous, please let me know how to do it in a standard manner.</p>
  
  <p>Thanks. Help will be appreciated.</p>