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).
I'm still using the development emulation, without SSL (except for the authentication service itself).
I am using the following action filter to restrict access to some controllers:
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)
{
// ...
}
}
}
How can I increase the expiration time? Or would it be appropriate to manually renew the cookies in my action filter?
Thanks in advance!