How to ensure citrix xenapp 6.5 Disconnected Sessions are Logged Off ?

Hello there,

Please advise how to ensure Citrix xenApp 6.5 Disconnected Sessions are Logged Off.
What policy and where should I enable to make sure that disconnected sessions are logged off.
Please let me know te steps that I  need to undertake.

Gopi Prasad
Who is Participating?
ok do this test:

1. Take one server, and on the local group policy, set the disconnected time to 5mins. run gpupdate /force. close any existing session
2. Publish a test published desktop only to that server
3. Launch the app and close it using 'X' instead of log-off
4. Check on the Citrix app center>search> session by user. your session should show as disconnected
5. Wait for 5mins and refresh your Citrix app center and the session should log-off which means your session as ended.
6. Do another test, this time instead of using X button do a graceful log-off by start>log-off, the session should not show in app center which means log-off works as expected.
7. Do the same test with the published application which you're having problem. Use the same server.
8. If you do not see the session is disconnected instead it's active when u close the app, that means some processes are still running for that user in the background. You can find this on the task manager or select the server in farm and check the processes in the app center.

This is the solution for such type of application or the work -around is publish the app in non-seamless window instead of seamless. You have to check with the application vendor if needed.
Nagendra Pratap SinghDesktop Applications SpecialistCommented:
Casey HermanCitrix EngineerCommented:
Windows Components/Remote Desktop Services/Redmote Desktop Session Host/Session Time Limits.

Set Idle Session limit
Set time limit Active Session
Set time limit for Disconnected Session
Terminate session when time limits are reached

Here are my settings

Disconnect Time out set to 30 minutes (Ends a disconnected session)
IDLE 2 hours (This will disconnect the session after 2 hours then chains to "Disconnect Time out" rule)
Active is set for 18 hours (Disconnects them after 18hours then chains to "Disconnect Time out" rule)
Disable Terminate sessions when time limits are reached (This gives them a chance to log back in before the Disco Timer runs out else any time limit that is reached becomes a termination)

The citrix timeouts do not seem to work properly. So I do not recommend using them.

Ultimate Tool Kit for Technology Solution Provider

Broken down into practical pointers and step-by-step instructions, the IT Service Excellence Tool Kit delivers expert advice for technology solution providers. Get your free copy now.

goprasadAuthor Commented:
Thanks for that. Do I need to configure ica listener settings in server for disconnected sessions?OR just as the above mentioned GPO settings by you.
Please advise.
Casey HermanCitrix EngineerCommented:
The ICA listener will use the same policy.

Dirk KotteSECommented:
the settings are made per listener.
you can use the remotedesktopsessionhost - configuration and select the ica listener or configure the ica-listener directly with the ica-listener tool.
Casey HermanCitrix EngineerCommented:
To get the timeouts to work correctly they are based of the Remoted Desktop session host though.
I use GPO as mentioned by casedog and it seems to work fine. You can Set time limit for Disconnected Session as 5mins to log-off disconnect session after 5 mins.
goprasadAuthor Commented:
Still having issue.
goprasadAuthor Commented:
I am still having issue, the sessions are not getting disconnected.
I know this is marked as answered, but you really need to follow this guide instead of the accepted solution.

Setting it in GPO is wrong, and will not take effect in ICA sessions. You get something like this
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.