AUTO_LOGOUT_COMPONENT
The AUTO_LOGOUT_COMPONENT element creates a component, which defines
a mechanism for triggering and handling auto-logout events.
Syntax
<AUTO_LOGOUT_COMPONENT Id="component-id">
[<TIMEOUT>...</TIMEOUT>]
[<COMMAND>...</COMMAND>]
[<PROMPT>...</PROMPT>]
</AUTO_LOGOUT_COMPONENT>
- The component-id specifies the unique identifier for the auto-logout definition. It is this unique identifier that is referenced by an application, providing it with a base set of auto-logout values.
Child elements
The AUTO_LOGOUT_COMPONENT element may contain the following child
elements:
- Zero or one
TIMEOUT (for auto logout)element. - Zero or one
COMMAND (for auto logout)element. - Zero or one
PROMPT (for auto logout)element.
Usage
You use this element to define a component for handling auto-logout events. There is a default
auto logout component in the GAS configuration file, cpn.wa.autologout, which is
shown in the first example. If you need to configure other conditions for auto logout, you can set
the COMMAND element to run a script as shown in second example.
Usage example default AUTO_LOGOUT_COMPONENT
<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.
Usage example - auto logout with COMMAND
<AUTO_LOGOUT_COMPONENT Id="cpn.wa.autologout">
<TIMEOUT>30</TIMEOUT>
<COMMAND Timeout="20">auto-logout-allowed.sh</COMMAND>
</AUTO_LOGOUT_COMPONENT>
- The
TIMEOUTelement 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
COMMANDelement'sTimeoutattribute is set to 20 seconds to allow a command to be run that checks if the auto logout is allowed.
Parent elements
This element is a child of the following element: COMPONENT_LIST.