Environment
Symptoms
The published application is closed by the user, however:
Determining Whether the Behavior Is Expected
Expected Behavior
Unexpected Behavior
Caution! Using Registry Editor incorrectly can cause serious problems that might require you to reinstall your operating system. Citrix cannot guarantee that problems resulting from the incorrect use of Registry Editor can be solved. Use Registry Editor at your own risk. Be sure to back up the registry before you edit it.
Citrix determines whether a session should remain active by evaluating the processes running within the user session.
In some environments, an application or background process may continue running after the originally published application has been closed. As long as Citrix identifies active processes associated with the session, the session may remain active.
Common examples include:
Identify the process or application preventing the session from logging off.
If the process is required and should not prevent session termination, configure the LogoffCheckSysModules setting to include the executable name so that Citrix treats the process as a system component during session logoff evaluation.
After updating the configuration and restarting the affected services or machines as appropriate, validate that sessions terminate normally when user applications are closed.
Troubleshooting Steps:
Important consideration:
An Application not running session state is not necessarily indicative of an issue. If users continue working with other applications after closing the originally published application, the session may remain active by design.
Only when a session remains active because of an unintended background process preventing normal logoff should further investigation and potential LogoffCheckSysModules configuration be required.
After a user closes a published application, Citrix Director may show the session state as Application not running while the user session remains active.
Administrators may observe sessions remaining active longer than expected and assume the published application did not exit correctly.
https://support.citrix.com/external/article/CTX692983