I have an ASP.NET MVC 4.0 application on a KingHost server. In my web.config
I do the following:
<sessionState timeout="1000"></sessionState>
<authentication mode="Forms">
<forms loginUrl="~/Login" timeout="1000" >
</forms>
</authentication>
In my login controller:
FormsAuthentication.SetAuthCookie( agent.IDAgente.ToString() , false );
I'm not using MemberShip Provider
What happens:
Even if you set the timeout
to 1000 (almost a day) after 2 minutes of browsing the session drops. What I use to fetch session data is: HttpContext.Current.Session["variavel"]
.
What might be causing this?