Citrix
Include legacy content

Archive: How to Change the Session Timeout for Web Interface 3.0, 4.x

  • CTX103672
  • Created On  Apr 14, 2004
  • Updated On  Jun 18, 2014
  • 30 found this helpful
  • Article
  • Topic : Configuration
This article is no longer maintained, its content refers to a discontinued product and may be out of date. Refer to the Discontinued Product Lifecycle or Active Citrix Product pages for more information on support schedules.

Symptoms

Users are logged off from the Web Interface 3.0 or 4.x site after 20 minutes. Changing the session timeout value in Internet Services Manager or other Web server utilities has no effect.

Cause

The ASPX scripts in Web Interface 3.0 and 4.0 run as an ASP.NET application. Therefore, the session timeout value is controlled by the .NET framework instead of IIS. The default session timeout is contained in the web.config file in the /Citrix/MetaFrame/site folder.

In Web Interface 4.5.x, change the Web Session time out value in the Access Suite Console on the Web Interface server.

On Web Interface 3.0 for UNIX, the Web Interface scripts run in a Java servlet zone and session timeouts are controlled by the WEB-INF/web.xml file.

Resolution

On Web Interface for Windows:

For Web Interface 3.0, edit the wwwroot\Citrix\MetaFrame\site\web.config file using a text editor. Add a sessionState element to the First <system.web> section of Web.config declaring a new timeout value in minutes. For example, to change the session timeout to one hour, add the following line (in bold) to /Citrix/MetaFrame/site/web.config:

For Web Interface 4.0, edit the wwwroot\Citrix\MetaFrame\web.config file using a text editor. Add a sessionState element to the First <system.web> section of Web.config declaring a new timeout value in minutes. For example, to change the session timeout to one hour, add the following line (in bold) to /Citrix/MetaFrame/web.config:

    <configuration>

    <system.web>

    <sessionState timeout="60" />

    <compilation debug="false" defaultLanguage="C#">

    <assemblies>

Note: Web.config entries are case sensitive and take effect immediately. Use sessionState, not sessionstate.

For Web Interface 4.5.x, in the Access Management Console on the Web Interface server, change the length of time after which inactive users are logged off.

Highlight the siteàManage Session PreferencesàWeb Sessionsà Session Timeout.

Additional step for IIS 6.0

When Web Interface 3.0 or 4.0 is hosted by Internet Information Services 6.0 on Windows Server 2003, an additional step may be necessary.

Web Interface 3.0

If the session timeout is increased to a value greater than 20, it is also necessary to increase the idle timeout for the DefaultAppPool application pool. For example:

    § Open IIS Manager

    § Expand Application Pools > DefaultAppPool

    § Right-click DefaultAppPool and view its Properties

    § On the Performance tab, change the value for Shutdown worker processes after being idle for (time in minutes) to a number that is greater than or equal to the session timeout defined in web.config

If the session timeout is reduced to a value less than 20, the above step should not be necessary.

Web Interface 4.x:

If the session timeout is increased to a value greater than 20, it is also necessary to increase the idle timeout for the CitrixWebInterfaceAppPool application pool. For example:

    § Open IIS Manager

    § Expand Application Pools > CitrixWebInterfaceAppPool

    § Right-click CitrixWebInterfaceAppPool

    § and view its Properties

    § On the Performance tab, change the value for Shutdown worker processes after being idle for (time in minutes) to a number that is greater than or equal to the session timeout defined in web.config.

Web Interface 4.5:

    In Web Interface 4.5.x the time set for the CitrixWebInterface4.5AppPool must be greater than or equal to that defined in the Access Management Console on the Web Interface server.

    § If the session timeout is increased to a value greater than 20, it is also necessary to increase the idle timeout for the CitrixWebInterface4.5AppPool application pool. For example:

    § Open IIS Manager

    § Expand Application Pools > CitrixWebInterface4.5AppPool

    § Right-click CitrixWebInterface4.5AppPool and view its Properties

    § On the Performance tab, change the value for Shutdown worker processes after being idle for (time in minutes) to a number that is greater than or equal to the session timeout in the Access Management Console of the Web Interface server.

If the session timeout is reduced to a value less than 20, the above step should not be necessary.

On Web Interface 3.0 and 4.0 for UNIX:

Edit the WEB_INF/web.xml file using a text editor. For example, to change the session timeout to one hour, add the following inside the <web-app> section:

    <session-config>

    <session-timeout>60</session-timeout>

    </session-config>

Restart the Web service.


Share your comments or find out more about this topic

Citrix Forums

Languages

N/A

| Terms of Use | Privacy | Governance