3
I have an app ASP.NET MVC 4.0 on a server of Kinghost. In my web.config
I’ll tell you what:
<sessionState timeout="1000"></sessionState>
<authentication mode="Forms">
<forms loginUrl="~/Login" timeout="1000" >
</forms>
</authentication>
In my login controller:
FormsAuthentication.SetAuthCookie( agent.IDAgente.ToString() , false );
Obs: I am not using Membership Provider
What happens:
Even if configuring the timeout
for 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 could be causing this?
Just one question, do you lose session during the test? Make code modifications?
– Leonardo Coelho