Expiring Today—Celebrate National IT Professionals Day with 3 months of free Premium Membership. Use Code ITDAY17


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

Posted on 2013-05-15
Medium Priority
Last Modified: 2014-01-29
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
Question by:goprasad
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 3
  • 3
  • 2
  • +3
LVL 24

Expert Comment

by:Nagendra Pratap Singh
ID: 39167827
LVL 10

Assisted Solution

by:Casey Herman
Casey Herman earned 750 total points
ID: 39169358
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.


Author Comment

ID: 39170631
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.
Independent Software Vendors: We Want Your Opinion

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

LVL 10

Expert Comment

by:Casey Herman
ID: 39172616
The ICA listener will use the same policy.

LVL 24

Expert Comment

by:Dirk Kotte
ID: 39172677
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.
LVL 10

Expert Comment

by:Casey Herman
ID: 39172907
To get the timeouts to work correctly they are based of the Remoted Desktop session host though.
LVL 19

Expert Comment

ID: 39179580
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.

Author Comment

ID: 39202962
Still having issue.

Author Comment

ID: 39202980
I am still having issue, the sessions are not getting disconnected.
LVL 19

Accepted Solution

basraj earned 750 total points
ID: 39203155
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.


Expert Comment

ID: 39818649
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 http://support.citrix.com/article/CTX134756

Featured Post

NEW Veeam Agent for Microsoft Windows

Backup and recover physical and cloud-based servers and workstations, as well as endpoint devices that belong to remote users. Avoid downtime and data loss quickly and easily for Windows-based physical or public cloud-based workloads!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Citrix XenDesktop, gold image, VMware, vSphere.
If your vDisk VHD file gets deleted from the image store accidentally or on purpose, you won't be able to remove the vDisk from the PVS console. There is a known workaround that is solid.
How to install and configure Citrix XenApp 6.5 - Part 1. In this video tutorial we have explained step by step installation of Citrix XenApp 6.5 Server on Windows Server 2008 R2 is explained in this video. We have explained the difference between…
This demo shows you how to set up the containerized NetScaler CPX with NetScaler Management and Analytics System in a non-routable Mesos/Marathon environment for use with Micro-Services applications.

730 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question