COMMAND (for auto logout)

The COMMAND is an optional configuration element of AUTO_LOGOUT_COMPONENT that provides a mechanism for the Genero Application Server to override an application's auto logout.

Syntax

<COMMAND Timeout="timeoutSeconds"> commandScript </COMMAND>

Syntax notes

  1. timeoutSeconds is the number of seconds as the allowed time for a command to run.
  2. commandScript is the name of the script or command to be run.

Usage example

<COMMAND Timeout="20">auto-logout-allowed.sh</COMMAND> 
The command determines whether the auto logout takes place based on the value of an exit code it returns, or whether it times out:
  1. If the command's exit code is zero, the auto logout is ignored and the application keeps running.
  2. If the command's exit code is not zero, the auto logout is performed.
    Note: If the command times out, the auto logout process is also performed the same as if the exit code was not zero.

Usage Scenario

A typical use of the COMMAND option might be to check when the auto logout process is allowed. The external command could be used, for example, to only allow auto logout between the hours of 21.00 pm and 08.00 am, i.e. there would be no auto logout during work hours.

Parent elements

This element is a child of the following element: AUTO_LOGOUT_COMPONENT