Setting up automatic logout warning (Inactivity Warning)
Last updated: March 19th, 2025Description
- Author: Brian Schneider
- Published: March 19th, 2025
Details:
Description
When using InTouch you can setup the software to automatically log out the user after a period of inactivity (See related technote). Prior to logging them out, you can display a warning to let them know it is about to occur.
- Author: Dillon Perera
- Published: 12/29/2015
- Applies to: InTouch 9.5 and up
Details
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.
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.
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: