title: MVC3 Sliding expiration of cookies not working
body: <p>I am using the built in Forms authentication in an MVC3 application. The issue I am currently facing is that the cookies <code>slidingexpiration</code> is not working.</p>
  
  <p>The <em>web.config</em> file has the following line:</p>
  
  <pre><code>&lt;forms loginUrl="/auth" name="authy" path="/" slidingExpiration="true" /&gt;
  </code></pre>
  
  <p>note:: I have declared <code>slidingexpiration</code> even though the default is true.</p>
  
  <p>Within my code I am making use of the basic Membership Provider class with no extending or modification. My <em>global.asax</em> file is using the system default.</p>
  
  <p>There is no point in adding a code example as this is just a base project with no extra code added. I am using the <code>FormsAuthentication.SetAuthCookie(username, true);</code> to set the cookies initially.</p>