TIMEOUT (for auto logout)
This TIMEOUT
element sets a timeout to handle auto logout.
Syntax
<TIMEOUT>seconds</TIMEOUT>
- seconds specifies the number of seconds the DVM waits before it triggers an
auto-logout event. The default timeout is set by the resource
$(app.timeout.autologout)
to 0 seconds.
Child elements
There are no child elements.
Usage
You use this element to configure a timeout for auto logout. When the DVM detects an application has no user activity, it waits for the specified length before an auto logout event is triggered. The user receives a log out message after the period of time has elapsed.
Usage example with resource
<AUTO_LOGOUT_COMPONENT Id="cpn.wa.autologout">
<TIMEOUT>$(app.timeout.autologout)</TIMEOUT>
</AUTO_LOGOUT_COMPONENT>
The default value of the resource
$(app.timeout.autologout)
is "0". A timeout duration set to zero seconds means the
auto logout is ignored and the application keeps running. You can set a TIMEOUT
with the
resource:<RESOURCE Id="app.timeout.autologout" Source="INTERNAL">30</RESOURCE>
In
this example, the timeout duration is set to 30 seconds, which means the DVM waits 30 seconds from
when it detects an application has no user activity before the application gets a log out
message.Using the resource has advantages over setting the timeout directly for the following reasons:
- Shared resource: The
$(app.timeout.autologout)
resource is shared by other configuration components, ensuring that any changes automatically apply everywhere it is used. - Command line override: You can override the default value from the command line when
starting the dispatcher by using the resource. For example:
httpdispatch -E app.timeout.autologout=60
.
Usage example - use auto logout directly
To set auto logout in your application configuration file (xcf), add an
AUTO_LOGOUT
element with a TIMEOUT
element. In this example, the
timeout duration is set to 30 seconds, which means the DVM waits 30 seconds from when it detects an
application has no user activity before the application gets a log out
message.<APPLICATION Parent="defaultwa">
#...
<AUTO_LOGOUT>
<TIMEOUT>30</TIMEOUT>
</AUTO_LOGOUT>
#...
</APPLICATION>
Parent elements
This element is a child of the following elements: