Setting the timeout for web mail sessions


This knowledgebase article explains how to change the default timeout session value for web mail.


MailEnable Application Pool session timeout settings:

"Recycling" tab window:

  1. "Recycle worker process (in minutes)" = disabled
  2. "Recycle worker process (number of requests)" = disabled
  3. "Recycle worker processes at the following times" = disabled
  4. "Memory recycling" = disabled. 

"Performance" tab window:

  1. "Idle Timeout" = disabled
  2. "Request queue limit" = disabled
  3. "Enable CPU monitoring" = disabled
  4. "Web garden" = 1

"Health" tab window:

  1. "Pinging" option should be set to a value of 90.
  2. "Enable rapid-fail protection" = disabled.
  3. Startup time limit = 90
  4. Shutdown time limit = 90

"Identity" tab window:

The application pool identity should be set to the MailEnable IME_ADMIN account.


There is also a session timeout value that can be manually edited within the MailEnable Web mail  "web.config" file. The file is located in the following MailEnable installation path:

Mail Enable\BIN\NetWebmail\web.config

Follow the steps below on how to alter the session timeout value within the "web.config":

  1. Open the "web.config" file within Windows notepad
  2. Locate the following line:

    <sessionState mode="InProc" stateConnectionString="tcpip=" sqlConnectionString="datasource=;Trusted_Connection=yes" cookieless="false" timeout="60"/>

  3. Change the value for: timeout= "60". (The value is in minutes)
  4. Save the file
  5. Restart IIS


Session timeout errors occur when accessing web mail:

How to set the script timeout for web mail:

Product:MailEnable (Pro-Any Pro-2.X Ent-Any Ent-2.X)
Class:HOWTO: Product Instructions
Created:13/05/2003 10:50:00 PM
Revised:Wednesday, May 4, 2016