Wednesday, June 18, 2014

Citrix: Background screen does not exit


 

Description of the Issue:

Background screen does not exit even after graceful logoff from published application. Application is published on Xenapp 6.5 on Windows 2008 R2 server as an "application" type. When the user closes the application the background window does not get closed.

When we see the session in Citrix console the session seems to be logged off.
The application is accessed through Web Interface where the application is configured to open in a fixed Window mode of 1024x768.
In seamless mode it works fine. There is no background window appearance.

 Root Cause:

 When the application is gracefully exited, some windows OS process is not able exit and hence the background window is taking a long time to close.

Solution:

 Caution! Refer to the Disclaimer at the end of this article before using Registry Editor

This registry change allows you to set the length of time a client session waits before disconnecting the session. 

Note: Setting this value also increases the time it takes for a user to log off the server.

 Create the following registry key: HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Citrix\wfshell\TWI
Value Name: LogoffCheckerStartupDelayInSeconds
Type: REG_DWORD

 Value: An integer that denotes the time to wait for the application to start (10 Hexadecimal recommended)
It is more useful as a troubleshooting step to confirm that the issue is due to the length of time required for your application to launch.


Disclaimer: 

Using Registry Editor incorrectly can cause serious problems that might require you to reinstall your operating system. Use Registry Editor at your own risk. Be sure to back up the registry before you edit it.