I have an ASP.NET MVC application.
For some users we have the problem that from time to time their session context (in HttpContext.Current.Session
) disappears (is cleared).
The session state element in the web.config
looks like this:
<sessionState mode="StateServer" timeout="320" />
I check if session timed out like this:
HttpContext.Current.Session.IsNewSession
But this was not the case. The values just disappeared.
What can cause this to happen? Could local settings influence the session context?