[THIN] Another web interface tip CTX103672 - How to Change the Session Time-out for Web Interface 3.0

  • From: "Jim Kenzig http://thethin.net" <jimkenz@xxxxxxxxxxxxxx>
  • To: thin@xxxxxxxxxxxxx
  • Date: Mon, 23 May 2005 05:34:21 -0700 (PDT)

Well looks like by default that the Web Interface (at least in 4.0 and probably 
3.0) times out after 20 minutes. Apparently this is controlled by Asp.net in 
the web config file and default app pool settings. I had to change this 
immediately because my users were getting logged out after 20 minutes. Trust me 
you'll need this one. 
 
Here is the Citrix KB on it:
CTX103672 - How to Change the Session Time-out for Web Interface 3.0 

This document was published at: 

http://support.citrix.com/kb/entry.jspa?externalID=CTX103672 


Document ID: CTX103672, Created on: Apr 14, 2004, Updated: Mar 22, 2005 
Products: Web Interface for MetaFrame Presentation Server 3.0 
 
Symptom

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

Cause

The ASPX scripts in Web Interface 3.0 run as an ASP.NET application. Therefore, 
the session time-out 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.

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

Resolution

On Web Interface 3.0 for Windows:

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 time-out value in minutes. For example, to change the session 
time-out to one hour, add the following line to 
/Citrix/MetaFrame/site/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.

Additional step for IIS 6.0

When Web Interface 3.0 is hosted by Internet Information Services 6.0 on 
Windows Server 2003, an additional step may be necessary. 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.

On Web Interface 3.0 for UNIX:

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

<session-config>

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

</session-config>


Restart the Web service.


Other related posts: