AUTO_LOGOUT (for JGAS)

This AUTO_LOGOUT (for JGAS) is a configuration element that defines the auto logout mechanism used for applications.

Syntax

<AUTO_LOGOUT>
   [<TIMEOUT></TIMEOUT>]
   [<COMMAND></COMMAND>]
   [<CLASS></CLASS>]
</AUTO_LOGOUT>

Child elements

The AUTO_LOGOUT element may contain the following child elements:

Usage

You use this element to specify an auto logout that detects when an application has no user activity. The DVM waits the number of seconds specified by the TIMEOUT element before triggering an auto logout event and sending the application a log out message. By default an ending page is displayed showing the following message:

You have been logged out.

Usage example - default JGAS auto logout

<APPLICATION>
    <EXECUTION/>
    <AUTO_LOGOUT>
      <TIMEOUT>$(app.timeout.autologout)</TIMEOUT>
    </AUTO_LOGOUT>
</APPLICATION>

The default TIMEOUT, set by the app.timeout.autologout resource, is shown in the example. This default timeout duration is set to 0 seconds, which means the auto logout is ignored and applications keep running. For an example of how you can override this at runtime, see Override auto logout resource.

Usage example - use auto logout directly

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>
    <EXECUTION>
	 <PATH>my_app_dir</PATH>
	 <MODULE>my_module</MODULE>
    </EXECUTION/>
    <AUTO_LOGOUT>
         <TIMEOUT>30</TIMEOUT>
    </AUTO_LOGOUT>
    ...
 </APPLICATION>

Example with COMMAND to validate execution of auto logout

The auto logout feature allows a command to validate whether the auto logout can take place. For an example of this configuration, see COMMAND (for auto logout).

Example with CLASS to validate execution of auto logout

The auto logout feature allows you to implement the validation of auto logout in Java using the CLASS element.

Parent elements

The AUTO_LOGOUT element is a child of the APPLICATION (for application) element.