Link to home
Create AccountLog in
Windows Server 2008

Windows Server 2008

--

Questions

--

Followers

Top Experts

Avatar of Anthony_Bar
Anthony_Bar

Citrix Disconnection Session Policy
I am trying to set a policy to log off disconnected session after X amount of minutes in Citrix.
Need to set the policy to only affect a group of people logging on.

The only way i have managed to set this so far is to change the ICA client settings on the server to disconnect the sessions connected after X minutes.

But the policy does not do what i have set - This is the policy.

Disconnected Session Timer - Enabled
Disconnected Session Timer Interval - 5 minutes
Session Idle Timer Interval - 5 minutes

Applied to - "Test" user only

the issue is that this policy is not been applied to the user when it's disconnected for 5 minutes +

Zero AI Policy

We believe in human intelligence. Our moderation policy strictly prohibits the use of LLM content in our Q&A threads.


Avatar of nprignanonprignano🇺🇸

You also have to set the policy for Session Idle Timer to Enabled as it is disabled by default.

As for the session not ending, when you look at the session in the management console, is it showing as Disconnected or Active?

Avatar of Sekar ChinnakannuSekar Chinnakannu🇸🇬

Try to change the values and check. Also you need test separate.

I prefer try to set at least for idle time 60 mins and disconnect session 30 min and apply same through policy. So that whenever user try to reconnect the session he able to connect the session.

Difference between session disconnect & idle is

•      Idle - User is considered idle after a period time. The user will be considered idle if there is no activity (e.g. keyboard strokes or mouse movement) in the configured time period.  The default Terminal Services idle timeout is 1 minute, and the default for the Terminal Services Log is 5 minutes.
•      Disconnected - When a user is disconnected from the session but the session is still running. User could have been disconnect due to network or other failure or did not use proper log out procedure and just closed the Remote Desktop session window with the Close button [x]. This session is still running on the server and consuming resources, the users can reconnect and resume their disconnected session.

Avatar of Anthony_BarAnthony_Bar

ASKER

The Policy is already set to Enabled but the sessions still showing as disconnected after the time set.

I have tried to change the timer but it doesn't work.

Reward 1Reward 2Reward 3Reward 4Reward 5Reward 6

EARN REWARDS FOR ASKING, ANSWERING, AND MORE.

Earn free swag for participating on the platform.


open a session minimize it and don't do anything with that session, after some time the session automatically move to idle, if you close the session then it will go automatically to disconnected.

But that's what i want to achieve - users are not logging off their sessions properly so want to log off any disconnected sessions.

Avatar of nprignanonprignano🇺🇸

Are you testing via RDP or by launching an app/desktop?  You may have to set the timeouts directly on the ICA listener if the Citrix policy is not working.  You can find that in Remote Desktop Session Host Configuration.  Once its open, Right click on ICA-TCP, select properties, and go to the Sessions tab.  You can configure the same settings there.

Free T-shirt

Get a FREE t-shirt when you ask your first question.

We believe in human intelligence. Our moderation policy strictly prohibits the use of LLM content in our Q&A threads.


Testing via the publish desktop.

See i have set the ICA listener to log off disconnected session after X minutes and that worked but I need to exclude some users from that setting.

Is there a Windows GPO that could be configured to a group of users?

Avatar of nprignanonprignano🇺🇸

If you have settings configured on the listener, they will apply to all users connecting via that listener.  My suggestion would be to turn off the settings on the listener (uncheck the override checkboxes) and use Citrix policy to set it.  Unfortunately the GPO settings and listener settings are applied at the machine level so all connections are affected by those settings.

Override check box? On the ICA Listener?

Reward 1Reward 2Reward 3Reward 4Reward 5Reward 6

EARN REWARDS FOR ASKING, ANSWERING, AND MORE.

Earn free swag for participating on the platform.


Avatar of nprignanonprignano🇺🇸

Yeah, uncheck the boxes:

User generated image

This is my policy in Citrix -

And the ICA setting -
User generated image

Free T-shirt

Get a FREE t-shirt when you ask your first question.

We believe in human intelligence. Our moderation policy strictly prohibits the use of LLM content in our Q&A threads.


Avatar of nprignanonprignano🇺🇸

I don't think you are following me - the settings configured on the listener are going to override whatever you set in Citrix policy, so if you want to control the settings through Citrix policy then you have to turn them off on the ICA Listener.

Sorry this is the policy - User generated image

Not unless i am missing something somewhere i can't see that setting. - I am in the setting and all I have is 2 drop down boxes as shown above - sorry

Reward 1Reward 2Reward 3Reward 4Reward 5Reward 6

EARN REWARDS FOR ASKING, ANSWERING, AND MORE.

Earn free swag for participating on the platform.


Avatar of nprignanonprignano🇺🇸

Ah, please disregard my last statement then.  What is the value of the MaxDisconnectionTime setting in the registry?

key is located here:  HKLM\System\CurrentControlSet\Control\Terminal Server\WinStations\ICA-TCP

Set to 0

ASKER CERTIFIED SOLUTION
Avatar of CoralonCoralon🇺🇸

Link to home
membership
Log in or create a free account to see answer.
Signing up is free and takes 30 seconds. No credit card required.
Create Account

Avatar of Seth SimmonsSeth Simmons🇺🇸

This question has been classified as abandoned and is closed as part of the Cleanup Program. See the recommendation for more details.

Free T-shirt

Get a FREE t-shirt when you ask your first question.

We believe in human intelligence. Our moderation policy strictly prohibits the use of LLM content in our Q&A threads.

Windows Server 2008

Windows Server 2008

--

Questions

--

Followers

Top Experts

Windows Server 2008 and Windows Server 2008 R2, based on the Microsoft Vista codebase, is the last 32-bit server operating system released by Microsoft. It has a number of versions, including including Foundation, Standard, Enterprise, Datacenter, Web, HPC Server, Itanium and Storage; new features included server core installation and Hyper-V.