Application Pool Timeout

Application Pool Timeout

Application Pool Timeout

If session variables are stored in the IIS worker process, that means that when the user begins navigating the site, IIS assigns them a session Id. Any session variables stored (like user session variables when the user logs in) are stored in the IIS worker process. The worker process belongs to an application pool and that application pool has a timeout setting with a default value of 20 minutes. IIS will recycle the IIS worker processes according to this timeout so that any one worker process is not used to too long. If the worker process is shutdown or killed for any reason, the session information will be lost. This means that the user who is logged in with session variables defined at login, will no longer have those session variables and will be logged out.

Changing the Session Timeout

To change the session timeout, you will need to change the timeout in three locations: web.config, IIS Application Pool Timeout, and the EPCache Purge Timeout.

The web.config file is located in the Website folder for the environment you wish to change the timeout.

To change the IIS Application Pool Timeout, open Internet Information Services (IIS). This may be found through the Server Manager or searched for in the start menu.

From within IIS, find the Application Pools. Each Application pool has a timeout set that will default to 20 minutes. In order to find which application pool is used, find the site you want to change the timeout for and view the basic settings.


The settings for the application pool can be found by clicking Properties (IIS 6) or Advanced Settings (IIS 7.5) on the application pool that the application is assigned to.

Change the “Idle Time-out (minutes)” value to the desired timeout for your site. Remember to stop and restart the application pool in order for these changes to take effect.

To change the EPCache Purge Timeout, open EASYProcess and navigate to Profile and Configurations under Tests and Setup.

The bar on the left will list all the configurations. The ones under the system category are considered essential for EASYProcess to run. One of the system configurations is named “Purge”. This stores the setting of how often files and database records are purged for the environment. Find the “EPCache” instance and select it to view the variables.