Skip to main content
InSource Solutions

TN IT198 Automatic logout (Inactivity Warning and Timeout)

InSource_Logo_Transparent.png

 

Description

Using security within InTouch and would like the software to automatically log the user out after a period of inactivity.

 

  • Author: Dillon Perera
  • Published: 12/29/2015
  • Applies to: InTouch 9.5 and up

 

 

Details

When using InTouch's security, by default when a user is logged in they will stay logged in indefinitely.  InTouch can be set to automatically log the user out after a period of inactivity, and warn them prior.

 

This is accomplished by setting up an Inactivity Warning timer, and an Inactivity Timeout timer.

 

Inactivity Warning

To setup an Inactivity Warning, we first have to specify when this should occur.  To enter this value we'll go into WindowViewer's configuration, from within WindowMaker.

InTouchSecurity_InactivityTimeout_Configure.png

 

InTouchSecurity_InactivityTimeout.png

 

In the Inactivity Warning, you can specify how many seconds to wait before providing a warning.  This value should be lower than the Inactivity Timeout.  Note that these values are not additive, so in the following example from starting time 0:00:00 a warning will be displayed at 0:00:60, and then the user will be logged out at 0:02:00.

 InTouchSecurity_InactivityWarningExample.png

 

Once in runtime, when a user is logged in and has been inactive for 60 seconds, the built in system tag named $InactivityWarning will be set to 1.  This will let us know that the time elapsed.  A Condition Script can be written to look for this ($InactivityWarning==1) and then either display a Window on the screen to inform the operator, or we can use this in an animation to flash an icon.

 

For example, to display a window, we'll assume we have already created a window called "Logout Warning", and we will create a script to display it:

InTouchSecurity_InactivityWarningWindow.png

 

 

Inactivity Timeout

To set a timeout period we will go to the WindowViewer configuration from WindowMaker:

InTouchSecurity_InactivityTimeout_Configure.png

 

InTouchSecurity_InactivityTimeout.png

 

From this screen we see an "Inactivity" section.  The Timeout is the setting that will automatically log the user out after a certain amount of time.  Enter in the amount of time that the software should wait before logging them out.

 

For example, to log out after 2 minutes of inactivity:

InTouchSecurity_InactivityTimeoutExample.png

 

General

If either the Inactivity Warning or Timeout timers are set to 0 then those features will not be enabled.