User session stays in Active State after Graceful Logoff

Sometimes when a user closes a XenApp published application, the Citrix user session stays in active state. This is caused by Windows system processes or by the application sub processes that are not closing properly.  By default Citrix XenApp has a hard coded list of processes that are checked for and terminated when the user logs off.

With the following registry tweak you can add processes to this list;

HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Citrix\wfshell\TWI

Value Name: LogoffCheckSysModules
Type: REG_SZ
String: app1.exe,app2.exe

Executables must be separated with a comma.

One of the most common executable that has to be added is sftdcc.exe. It must be added at the time that the Microsoft AppV RDS Client is installed on the Citrix XenApp server.

User_session_stays_in_Active_State_after_Graceful_Logoff_001

 

1 comment

  • Also make sure that there are no spaces between the commas. I found that if you put a space in there then it ignores the rest of the exes that should be excluded.

About Robin Hobo

I am a Technology Specialist working for Microsoft with focus on the Modern Workplace. I am specialized in Microsoft Intune, Azure Virtual Desktop (AVD), Windows 365, Windows 11 and Azure AD. Also interested in mental health, NLP and personal development.

For more information, see the About Me page or my LinkedIn profile.

By continuing to use the site, you agree to the use of cookies. more information

The cookie settings on this website are set to "allow cookies" to give you the best browsing experience possible. If you continue to use this website without changing your cookie settings or you click "Accept" below then you are consenting to this.

Close