AUTOLOGOUT

AUTOLOGOUT

Top  Previous  Next

 

The AUTOLOGOUT command sets an inactivity period after which a process will automatically be logged out.

 

 

Format

 

AUTOLOGOUT {period}

 

where

 

periodis the inactivity time in minutes. A value of zero disables the timer.

 

 

The AUTOLOGOUT command prevents users leaving inactive sessions logged in. If the process is waiting for input for the given time, it will automatically be logged out. The ON.EXIT paragraph will be executed if it exists.

 

Executing the AUTOLOGOUT command with no period option displays the current setting.

 

Used in a QMClient session, the process will be terminated if no client/server interaction takes place within the autologout period, however, the client will not be aware of this termination until it next attempts a server operation. Note that autologout is not currently supported for QMClient connections established using the QMConnectLocal() function.

 

 

Example

 

AUTOLOGOUT

Autologout is disabled

 

AUTOLOGOUT 4

 

AUTOLOGOUT

Autologout period is set to 4 minute(s)

...wait...

Inactivity time expired - Process logged out

Process terminated

 

In this example, the AUTOLOGOUT command is used to examine the current setting. The inactivity period is then set to four minutes and the setting displayed again. After four minutes of inactivity, the process is automatically logged out.