# Session not logging off when application has been closed

**URL:** <https://forums.developer.nvidia.com/t/session-not-logging-off-when-application-has-been-closed/162793>\
**Category:** XenDesktop\
**Created:** [September 21, 2018, 1:40pm UTC](https://forums.developer.nvidia.com/t/session-not-logging-off-when-application-has-been-closed/162793 "2018-09-21T13:40:41Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![Tomt](https://developer.download.nvidia.com/images/forums/profile-default-devtalk-84.png) [@Tomt](https://forums.developer.nvidia.com/u/Tomt)\
**Post date:** [September 21, 2018, 1:40pm UTC](https://forums.developer.nvidia.com/t/session-not-logging-off-when-application-has-been-closed/162793/1 "2018-09-21T13:40:41Z")

</div>

Hi,

We are running Xenserver 7.5, Grid 6.2 en CVAD 1808.2. I’ve got Xenapp en desktop, in which i both got applications published. When i shut down the app on the Xenapp(on VMWare), it logs off the session. When i do this on the Xendesktop with P4 2q profile(on Xenserver) it keeps the session active, not even disconnecting it.

When i check the connection center in the Workspace app, it tells me that the nvidia settings stays open.

How can i keep this from passing through to my clients?

---

<div class="post-metadata">

**Author:** ![sschaber](https://sea2.discourse-cdn.com/nvidia/user_avatar/forums.developer.nvidia.com/sschaber/32/14047_2.png) [@sschaber](https://forums.developer.nvidia.com/u/sschaber)\
**Post date:** [September 21, 2018, 3:06pm UTC](https://forums.developer.nvidia.com/t/session-not-logging-off-when-application-has-been-closed/162793/2 "2018-09-21T15:06:59Z")

</div>

1808 is not tested /supported with 6.2 yet as it was released only a few days ago.

---

<div class="post-metadata">

**Author:** ![Tomt](https://developer.download.nvidia.com/images/forums/profile-default-devtalk-84.png) [@Tomt](https://forums.developer.nvidia.com/u/Tomt)\
**Post date:** [October 15, 2018, 6:05am UTC](https://forums.developer.nvidia.com/t/session-not-logging-off-when-application-has-been-closed/162793/3 "2018-10-15T06:05:08Z")

</div>

Hi,

Installed Grid 6.3, which makes 1808 supported.

Session is still nog logged off when the application is closed. Tested with 2 applications, Word and Solidworks.

Looks like something from the driver keeps the session open.

---

<div class="post-metadata">

**Author:** ![sschaber](https://sea2.discourse-cdn.com/nvidia/user_avatar/forums.developer.nvidia.com/sschaber/32/14047_2.png) [@sschaber](https://forums.developer.nvidia.com/u/sschaber)\
**Post date:** [October 15, 2018, 11:18am UTC](https://forums.developer.nvidia.com/t/session-not-logging-off-when-application-has-been-closed/162793/4 "2018-10-15T11:18:28Z")

</div>

And which process?  
What are you doing? Published App or Published Desktop? If it’s NVTray there is a Regkey to prevent it showing in all RDS sessions.

---

<div class="post-metadata">

**Author:** ![Tomt](https://developer.download.nvidia.com/images/forums/profile-default-devtalk-84.png) [@Tomt](https://forums.developer.nvidia.com/u/Tomt)\
**Post date:** [October 16, 2018, 6:49am UTC](https://forums.developer.nvidia.com/t/session-not-logging-off-when-application-has-been-closed/162793/5 "2018-10-16T06:49:22Z")

</div>

Hi,

Published App. Added the StartOnLogin Dword 0 in HKCU\Software\Nvidia Corporation\NvTray, but no changes

---

<div class="post-metadata">

**Author:** ![sschaber](https://sea2.discourse-cdn.com/nvidia/user_avatar/forums.developer.nvidia.com/sschaber/32/14047_2.png) [@sschaber](https://forums.developer.nvidia.com/u/sschaber)\
**Post date:** [October 16, 2018, 1:57pm UTC](https://forums.developer.nvidia.com/t/session-not-logging-off-when-application-has-been-closed/162793/6 "2018-10-16T13:57:15Z")

</div>

Hi,

you should use the following location:  
HKEY\_LOCAL\_MACHINE\SYSTEM\CurrentControlSet\Services\nvlddmkm\NvTray

regards

Simon

---

<div class="post-metadata">

**Author:** ![C3dy](https://sea2.discourse-cdn.com/nvidia/user_avatar/forums.developer.nvidia.com/c3dy/32/96560_2.png) [@C3dy](https://forums.developer.nvidia.com/u/C3dy)\
**Post date:** [July 18, 2019, 9:25am UTC](https://forums.developer.nvidia.com/t/session-not-logging-off-when-application-has-been-closed/162793/7 "2019-07-18T09:25:43Z")

</div>

Hi Tom

Please determine which process is preventing the session from logging off, and add the process to the reg key:

> **[Graceful Logoff from a Published Application Renders the Session in Active State](https://support.citrix.com/article/CTX891671/graceful-logoff-from-a-published-application-renders-the-session-in-active-state)**
>
> Graceful logoffs from a published application launched in a seamless, fixed window, or as an RDP Initial Program, might result in the session not closing and the user being logged off. Sessions can be reset or exited correctly by manually resetting...

Had the same problem with applications and added multiple processes to the reg key, like Kaspersky, Acrotray etc.

Regards, Cedy
