How to maintain session for a longer time in ASP.Net Local and IIS server

on May 25, 2014 11:24 PM

I have added code in web.config file for session of 2 hours.


<sessionState mode="InProc" cookieless="false" timeout="120">


It works on local but when the code is published session expires in just 10-15 minutes.


Is there any other way to configure?

Download FREE API for Word, Excel and PDF in ASP.Net: Download
on May 25, 2014 11:26 PM
on Jun 02, 2014 08:11 AM

In IIS there's a setting which resets the worker processes if the website is idle for some minutes.

Right now since you are the only user it gets resets when you are not doing any activity or browser closed.

But when many people are acesssing this will not happen, but if you still want you can do it by changing that setting