Home / Software / Tips and Tricks / Session Timeout on IIS 7 when Application pool is updated to ASP.NET 4.0

Session Timeout on IIS 7 when Application pool is updated to ASP.NET 4.0

Updated:  12/03/2010 09:12 AM
Author:  Shiju Mathews

Status:    Resolved.


I have an application working on IIS 7.0 with asp.net 2.0, that is using session valid up to 8 hours. When I updated the IIS 7 with ASP.NET 4.0 Session is timing out after 20 minutes. How can I fix it?

Try the following steps.
  • Open IIS Manager and navigate to the level you want to manage. For information about opening IIS Manager, see Open IIS Manager (IIS 7). For information about navigating to locations in the UI, see Navigation in IIS Manager (IIS 7).

  • Click on Application Pools on left side, Under connections.

  • Click on 'Set Application pool Defaults...'. This link is on the right side of the window under Actions

  • Application Pool Defaults dialog box will pop up.

  • Go to 'Idle Time Out(Minutes)' Under 'Process Model'

  • Change the value to 480 from 20

  • Click 'OK'

  • Restart the IIS.



    This will fix the Timeout Issue.

    If you are configuring a new IIS 7, You need to make more changes on other parameters.
    Refer How to Configure Session Time out fro IIS 7.
  •