I'm doing a bit of testing on Cookie/FormsAuthenticationTicket/Session timeouts. During my testing I found something really interesting.
cookie.Expires = DateTime.MinValue;
Then I created a asp.net button that simply calls Response.Redirect(Request.RawUrl);
to refresh the page to see if i'm still in the secure section of the page.
If i continuously refresh the page the FormsAuthenticationTicket lasts greater than 5 minutes.
So my questions are:
As stated in the comments this is due to the default value of sliding expiration being true: http://msdn.microsoft.com/en-us/library/system.web.configuration.formsauthenticationconfiguration.slidingexpiration.aspx
Thanks!