asp.net mvc - Cookie expires or session timeout too soon -
I have code that is run when user is authorized: FormsAuthenticationTicket authTicket = New form authenticationTicket (1, email, date time.Now, date time.Now additional minutes (120), true, userdata); String Encaket = Formatting. Encrypt (authTicket); HttpCookie faCookie = New HttpCookie (form authentication.formcookname, encrypt); FaCookie.Expires = authTicket.Expiration; Response.Cookies.Add (faCookie); Then I redirect to an Administrator / Action that has the Authorization feature: [Authorized] Public class Product Controller: Controller { I have the web The config has the following: & lt; Authentication mode = "form" & gt; & Lt; Form log in url = "~ / home / unauthorized" timeout = "2880" /> & Lt; / Authentication & gt; & Lt; sessionState timeout = "120" & gt; & Lt; / SessionState & gt; Although the users are complaining of the session deadline or after a few minutes of inactivity, ...