In my web.config I have this:
<sessionState timeout="70"/>
However, after 5 minutes my session is null and my program crashes. How to make this time longer?
Here is how I initialize it:
Session["mySession"] = "blah blah";
In my web.config I have this:
<sessionState timeout="70"/>
However, after 5 minutes my session is null and my program crashes. How to make this time longer?
Here is how I initialize it:
Session["mySession"] = "blah blah";
Check the applicationpool timeout http://technet.microsoft.com/nl-nl/library/cc771956%28v=ws.10%29.aspx
Using forms authetication? It got it's own timeout/
the time that you putting inside the Web.Config
<sessionState timeout="60"/>
(it in minutes)
affect on the
HttpContext.Current.Session.Timeout = 60
or
System.Web.HttpContext.Current.Session.Timeout = 60