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

Posted on 2013-05-15
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
  • 3
  • 3
  • 2
  • +3
LVL 23

Expert Comment

by:Nagendra Pratap Singh
ID: 39167827
LVL 10

Assisted Solution

by:Casey Herman
Casey Herman earned 250 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.
Technology Partners: 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 23

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 250 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

Featured Post

ScreenConnect 6.0 Free Trial

At ScreenConnect, partner feedback doesn't fall on deaf ears. We collected partner suggestions off of their virtual wish list and transformed them into one game-changing release: ScreenConnect 6.0. Explore all of the extras and enhancements for yourself!

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
Customized VNC 1 54
Domain join remote sites or not 3 67
Citrix NetScaler LoadBalancer 1 46
Remote Desktop Session Host Configuration 2 70
After several days of searching and hunting for limited documentation, I wanted to share this guide to hopefully save someone the hassle of trying to figure this out on their own. I have tested this on Xendesktop 7.1 and PS 4.5 running simultaneous…
Let’s list some of the technologies that enable smooth teleworking. 
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.

713 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