ExpireSessions

ITP/Server will scan the active sessions and remove all sessions which meet the specified expiration criteria. Refer to chapter Using ITP/Server sessions for more information on sessions.

Syntax
ExpireSessions
Age(<number>)
LastAccess(<number>);
Parameters

Age: Optional.
Expires session which were created more than <number> minutes ago. If this parameter is omitted or set to 0 no expiration based on creation time is performed.

LastAccess: Optional.
Expires session which were last used more than <number> minutes ago. If this parameter is omitted or set to 0 no expiration based on last usage is performed.

Remarks

The command ExpireSessions will fail if both the parameters Age and LastUsed are either omitted or have the value 0. It is possible to specify values for both parameters.

After the command ExpireSessions completes successfully the variable _expired_sessions will contain a comma-separated list of the sessions that were expired. This variable is empty if no sessions were expired.