Idle, disconnected user sessions

I have a question regarding user session idle, disconnect, and logoff timers in ThinLinc.

I’ve configured the session timeout settings according to the documentation, but during testing it appears that ThinLinc is ignoring the configured values.

For example, as a test I set:

IdleTimeout = 300
MaxIdleTime = 1200
MaxDisconnectionTime = 2400

However, the observed behaviour was:

  • Screen saver/screen lock: Never activated
  • Session disconnected: ~7 minutes.
  • Admin Console showed session as disconnected: ~7 minutes.
  • Session logged off: ~22 minutes.

Based on the configured values, I expected the following behaviour:

  • Screen lock/screensaver to activate after 5 minutes (300 seconds).
  • Idle session to be disconnected after 20 minutes (1,200 seconds)
  • Disconnected session to be logged off after 40 minutes (2,400 seconds).

Any pointers on getting the idle, disconnect, and logoff timers to honour the configured values would be much appreciated.

Thanks

Harj

The results of your test appear to (roughly) match your configuration. ThinLinc has no control over the screensaver; this is configured/controlled entirely by the desktop environment running inside your session. The parameters you are using in your configuration above are described in the documentation here:

Your configuration should give the following behaviour for an idle session:

  • after 300 seconds, the client is disconnected (but session left running)
  • after 1200 seconds, the session is killed
  • MaxDisconnectionTime has no effect, since by this point the session has already been killed

Hope that clarifies things.

Hi Aaron

Thanks for the reply and for clearing this up.

I had assumed the behaviour would work similarly to Windows RDS/Citrix session policies, where the workflow is typically:

  • Idle session → session remains logged in but marked idle
  • Disconnected session → session remains running but disconnected
  • Disconnected timeout → session is logged off/terminated

Based on the parameter names, I had assumed the ThinLinc settings as:

  • IdleTimeout → change the session state to idle
  • MaxIdleTime → disconnect the session but leave it running
  • MaxDisconnectionTime → terminate the disconnected session

The actual behaviour makes more sense now.

I will investigate the XFCE screensaver configuration as with the default configuration - its a bit random as to when it activates.

regards

Harj