Cicode Programming Reference > Cicode Function Categories > Security Functions Introduction > LogoutIdle

LogoutIdle

Sets an idle time for logging out the current user. If the current user does not execute a command within the specified idle time, a prompt is displayed. If the prompt is ignored, then the user is logged out. For every user to have the same idle time, you would call this function at startup. Otherwise, you can call the function from the Users database to specify an idle time for each user. This function will not log out an automatically logged on user.

Until reset LogoutIdle remains active. To reset call LogoutIdle (-1) from the Exit command of the Users database record.

Syntax

LogoutIdle(Idle)

Idle:

The number of minutes the user needs to be idle before logout will occur. Set Idle to -1 to disable the current logout timeout.

Return Value

No return value.

Related Functions

Logout, Login, LoginForm

Example

Users

User Name

Operator1

LoginForm

LogoutIdle(5)

Comment

Logs the user out after five minutes

See Also

Security Functions