AUTO_LOGOUT_COMPONENT

The AUTO_LOGOUT_COMPONENT element creates an application auto logout component, which defines a mechanism for triggering and handling auto-logout events. It takes an attribute Id, which specifies the unique identifier for a set of auto-logout definitions. It is this unique identifier that is referenced by an application, providing it with a base set of auto-logout values.

Syntax

<AUTO_LOGOUT_COMPONENT Id="component_unique_identifier">
    <TIMEOUT>timeoutSeconds</TIMEOUT>
        <!--COMMAND is an optional configuration element -->
    <COMMAND Timeout="timeoutSeconds"> commandScript </COMMAND>
</AUTO_LOGOUT_COMPONENT>

Child elements

The AUTO_LOGOUT element may contain the following child elements:

  1. Zero or one TIMEOUT (for auto logout) element.
  2. Zero or one COMMAND (for auto logout) element (Optional).

Usage example default AUTO_LOGOUT_COMPONENT in the GAS configuration file

<AUTO_LOGOUT_COMPONENT Id="cpn.wa.autologout">
    <TIMEOUT>0</TIMEOUT>
</AUTO_LOGOUT_COMPONENT>
In this example, the Id value - cpn.wa.autologout - defines the default AUTO_LOGOUT_COMPONENT in the GAS configuration file. When your applications reference the default application, defaultwa, they inherit the settings defined by its AUTO_LOGOUT element as shown in the example:
<AUTO_LOGOUT Using="cpn.wa.autologout"/>

Usage example 2

<AUTO_LOGOUT_COMPONENT Id="cpn.wa.autologout">
    <TIMEOUT>30</TIMEOUT>
    <COMMAND Timeout="20">auto-logout-allowed.sh</COMMAND>
</AUTO_LOGOUT_COMPONENT>
In this example:
  • The TIMEOUT element is set for 30 seconds. When no user activity is detected, the DVM waits for this timeout period to elapse before the auto logout task is performed.
  • The COMMAND element's Timeout attribute is set to 20 seconds to allow a command to be run that checks if the auto logout is allowed, see COMMAND (for auto logout)

Parent elements

This element is a child of one of the following elements: COMPONENT_LIST.