ExpireSessions

KCM Core scans the active sessions and removes all sessions that meet the specified expiration criteria. For more information, see KCM Core sessions.

Syntax

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

Parameters

  • Age: Optional. Expires session 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 last used more than <number> minutes ago. If this parameter is omitted or set to 0, no expiration based on last usage is performed.

The command ExpireSessions fails if both the parameters Age and LastUsed are either omitted or have the value 0. You can specify values for both parameters.

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