How to control ICA session using timer (timeouts) in LinuxVDA

How to control ICA session using timer (timeouts) in LinuxVDA

book

Article ID: CTX232196

calendar_today

Updated On:

Description

Linux VDA supplies three different timers to control ICA session.

  1. Idle Timer
Idle timer is for controlling how long an HDX session can remain idle before being disconnected,
  1. Disconnection Timer
Disconnection timer is for controlling how long a session can remain disconnected before logoff.
  1. Connection Timer
Connection timer is for controlling how long a session can remain connected before being disconnected.
When one of those timers expires for a session, the user will receive a warning dialog informing that current session will be disconnected or logged off in five minutes.
 

Instructions

These timers are not enabled by default, which means session can remain in the corresponding idle, disconnected, or connected state. This article describes the following topics.
  • Get current time value
  • Enable timer and customize time value.

Get current time value
All time values are defined in the registration table. We can get current value using the following command:
/opt/Citrix/VDA/bin/ctxreg,
Example:
  1. Get the value of Idle timer
/opt/Citrix/VDA/bin/ctxreg dump |grep MaxIdleTime
 
  1. Get the value of Disconnection timer
/opt/Citrix/VDA/bin/ctxreg dump |grep MaxDisconnectionTime
 
  1. Get the value of Connection timer
/opt/Citrix/VDA/bin/ctxreg dump |grep MaxConnectionTime


Enable Timer and customize time value
  1. Set value for Idle Timer
/opt/Citrix/VDA/bin/ctxreg update -k "HKLM\System\CurrentControlSet\Control\Citrix\WinStations\cgp" -v "MaxIdleTime" -d "0x00000005" 
/opt/Citrix/VDA/bin/ctxreg update -k "HKLM\System\CurrentControlSet\Control\Citrix\WinStations\tcp" -v "MaxIdleTime" -d "0x00000005" 
/opt/Citrix/VDA/bin/ctxreg update -k "HKLM\System\CurrentControlSet\Control\Citrix\WinStations\ssl" -v "MaxIdleTime" -d "0x00000005" 
 
  1. Set value for Disconnection Timer
/opt/Citrix/VDA/bin/ctxreg update -k "HKLM\System\CurrentControlSet\Control\Citrix\WinStations\cgp" -v "MaxDisconnectionTime" -d "0x00000005" 
/opt/Citrix/VDA/bin/ctxreg update -k "HKLM\System\CurrentControlSet\Control\Citrix\WinStations\tcp" -v "MaxDisconnectionTime" -d "0x00000005"
/opt/Citrix/VDA/bin/ctxreg update -k "HKLM\System\CurrentControlSet\Control\Citrix\WinStations\ssl" -v "MaxDisconnectionTime" -d "0x00000005"
 
  1. Set value for Connection Timer
/opt/Citrix/VDA/bin/ctxreg update -k "HKLM\System\CurrentControlSet\Control\Citrix\WinStations\cgp" -v "MaxConnectionTime" -d "0x00000005"
/opt/Citrix/VDA/bin/ctxreg update -k "HKLM\System\CurrentControlSet\Control\Citrix\WinStations\tcp" -v "MaxConnectionTime" -d "0x00000005"
/opt/Citrix/VDA/bin/ctxreg update -k "HKLM\System\CurrentControlSet\Control\Citrix\WinStations\ssl" -v "MaxConnectionTime" -d "0x00000005"

NOTE:
  1. Number 0x00000005 in the command is the time value in hex, we can change this as required.
  2. Disable the Timer by setting related time value as 0.
  3. Those changes will not affect any existing sessions, only those created afterwards.

Environment

Caution! Using Registry Editor incorrectly can cause serious problems that might require you to reinstall your operating system. Citrix cannot guarantee that problems resulting from the incorrect use of Registry Editor can be solved. Use Registry Editor at your own risk. Be sure to back up the registry before you edit it.