TIMEOUT (for auto logout)

This TIMEOUT element sets a timeout to handle auto logout.

Syntax

<TIMEOUT>seconds</TIMEOUT>
  1. seconds specifies the number of seconds the DVM waits before it triggers an auto-logout event. If not specified, the default timeout is 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. The TIMEOUT is set by the resource $(app.timeout.autologout) in the as.xcf file.

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.

The app.timeout.autologout resource is preferred over setting the timeout directly because it is shared by AUTO_LOGOUT_COMPONENT, ensuring that any changes automatically apply there as well. Additionally, you can use this resource to override the default value from the command line when starting the dispatcher. For example:

httpdispatch -E app.timeout.autologout=60

Usage example - use auto logout directly

If you want to set auto logout directly in your application configuration file (xcf), you can add an AUTO_LOGOUT 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: