title: .net mvc session timeout even after adding sessionstate
body: <p>application:</p>
  
  <p>-.net MVC 3 / c# / SQL Server 2008 </p>
  
  <p>issue:</p>
  
  <ul>
  <li>after leaving the application unattended for nor more than 5 minutues have to log in again.</li>
  <li>sometimes even while working inside the application I will click in some place and it brings me back to the login screen.</li>
  <li>no error pop up of any sort comes up, just have to log in again.</li>
  </ul>
  
  <p>I know there are some threads about this post but I wanted to add the code I am currently using in my web.config file. I tried to add the session timeout tag inside  but issue persists.</p>
  
  <p>I am not pasting all code but I am adding the code I think its relevant to this issue, please let me know if I am missing something else.</p>
  
  <p>this is what I added:</p>
  
  <pre><code>&lt;sessionState mode="InProc" timeout="200000"/&gt;
           &lt;customErrors mode="Off"/&gt;
  
  &lt;authentication mode="Forms"&gt;
        &lt;forms loginUrl="Login/Login"&gt;
        &lt;/forms&gt;
      &lt;/authentication&gt;
  
      &lt;authorization&gt;
        &lt;deny users="?" /&gt;
      &lt;/authorization&gt;
  </code></pre>
  
  <p>is there something else I am missing. I feel that after adding teh sesstionstate line nothing has changed. From what I understand without the sessionstate line the default is 30 mins, but I am getting kicked out before this time.</p>
  
  <p>also I have seen some sesstionstate setup with more than the line I added so not sure if I am missing something there. </p>
  
  <p>Thanks for any suggestion.</p>