Horizon – Publish Apps and IDLE sessions

Following a migration of published applications from the Citrix platform to the Omnissa environment, the customer realized that the sessions to the unused applications (IDLE) were never closed. The application is still open (but the application is not used) and the session on the RDSHost server remained active.

In order to meet the customer’s needs, it is necessary to operate on Active Directory GPOs and on RDS Farm configurations created on Horizon.

GPO Active Directory

There is a setting to configure to enable the Session Time Limits.

Computer Configuration -> Administrative Templates -> Windows Components -> Remote Desktop Services -> Remote Desktop Session Host -> Session Time Limits

A screenshot of a computer

AI-generated content may be incorrect.

Setting up on the FARM

There is a special parameter to set form disconnect RDS Empty Session on the RDS Farm Configuration

A screenshot of a computer

AI-generated content may be incorrect.

The user experience is as follows:

  • The user starts an application published by horizon (e.g. the SAP GUI) and works on it.

A screenshot of a computer screen

AI-generated content may be incorrect.

  • The session is left in IDLE (because the user went to home after work, and locked the PC) and from RDSHost side I can see that the session goes into IDLE:

A screen shot of a black background

AI-generated content may be incorrect.

  • When the time set in the GPO expires, the user will receive the following message

A screenshot of a computer screen

AI-generated content may be incorrect.

If the user does not do anything within 2 minutes, the session is marked as disconnected and the application (user side) is closed. RDSHost session state change from Active to Disconnect.

The Disconnected state is what allows Horizon to trigger.

Once the time set on the Horizon side FARM has expired, in the Empty Session timeout parameter, the session is removed.

A screenshot of a computer

AI-generated content may be incorrect.

As you can see, it is no longer present.

Horizon – Publish Apps and IDLE sessions