Sessions timeout too quickly - Session state issues.

If your sessions are expiring too quickly then please set the site to use ASP.Net State Server.

You need to do two things in web.config file in the root of your website/application to do that.
Firstly add this line:

<sessionState mode="StateServer" cookieless="false" timeout="20" />

Then please follow the link below to create a machine key for each site and add it in web.config as well:
http://portal.winserve.co.uk/knowledgebase.php?action=displayarticle&id=52

You put both of the above anywhere in section <system.web> .


Doing that will make your apps use the State Server service and it will keep your sessions active even if your application pool recycles or if the web server is reset.

  • 921 Users Found This Useful
Was this answer helpful?

Related Articles

404 Error when you have + (plus) character in your URLs

If you receive a 404 error when you have a + (plus) character in your URLs (usually through URL...

Error - It is an error to use a section registered as allowDefinition='MachineToApplication' beyond application level.

If you receive this error when trying to run an application in a sub folder of your website then...

compilation debug="true"

Under no circumstances should any clients use the following option in their web.config files on...

Error - Validation of viewstate MAC failed.

If you get the following error in your ASP.NET application please follow the instructions below:...

Error - There is a duplicate 'system.web.extensions/scripting/scriptResourceHandler' section defined

If you receive the error below when you try and edit a websites settings in the control panel...