title: Set Azure AppFabric Access Control Service cookie expiration time
body: <p>I'm using Azure's Access Control Service in an ASP.NET MVC 3 application. I can successfully login, read all the claim data I need etc. Everything works fine, except for one thing. After some time (less than an hour) the authentication cookies seem to expire (at least they don't show up in the request's cookie collection anymore).</p>
  
  <p>I'm still using the development emulation, without SSL (except for the authentication service itself).</p>
  
  <p>I am using the following action filter to restrict access to some controllers:</p>
  
  <pre><code>public class PersonLoginFilter : ActionFilterAttribute, IActionFilter
  {
      public override void OnActionExecuting(ActionExecutingContext filterContext)
      {
          base.OnActionExecuting(filterContext);
  
          // Check whether the user is logged in
          if (filterContext.HttpContext.Request.IsAuthenticated)
          {
               // ...
          }
      }
  }
  </code></pre>
  
  <p>How can I increase the expiration time? Or would it be appropriate to manually renew the cookies in my action filter?</p>
  
  <p>Thanks in advance!</p>