title: IIS Session timeout and Forms Authentication loop
body: <p>I seem to have a problem with timeouts and forms authentication loops in my application. The application is MVC3 based and is AJAX heavy. I find that even when a user is continuously working on the application and not being idle, sometimes they get kicked out and then forms authentication goes into a redirect loop with a 302 error.  </p>
  
  <p>The application is hosted with a provider who tells me they have increased the session timeouts to 60 mint.  My web.config setting for the application is as follows.  </p>
  
  <pre><code>&lt;authentication mode="Forms"&gt;
        &lt;forms loginUrl="~/Account/LogOn" timeout="2880" cookieless="UseCookies" slidingExpiration="true"/&gt;
      &lt;/authentication&gt;
  </code></pre>
  
  <p>Why would I be getting the session timeouts? Is there any setting I can check up/change to stop this happening?  </p>
  
  <p>Thank YOu,</p>