KillUsers

Logs off users. You can log off all users on all application servers, or log off only given users, application servers, and sessions.

Tip:

To log off users from a given cluster or application, use HsxClient.KillUsers.

Syntax

<HsvSystemInfo>.KillUsers vbAllServers, bstrServer, vbAllUsers, lActivityUserID, vbAllSessions, lActivitySessionID

Argument

Description

vbAllServers

Boolean (ByVal). Determines whether to log off users from all application servers. Pass TRUE to log users off from all application servers, FALSE to log users off the server specified in the bstrServer argument.

bstrServer

String (ByVal). The name of the application server for which to log users off. This argument is used only if the vbAllServers argument is set to FALSE.

vbAllUsers

Boolean (ByVal). Determines whether to log off all users. Pass TRUE to log off all users, FALSE to log off the user specified in the lActivityUserID argument.

lActivityUserID

Long (ByVal). The activity user ID of the user to log off. This argument is used only if the vbAllUsers argument is set to FALSE.

To get a user’s activity user ID, use GetActivityUserID.

vbAllSessions

Boolean (ByVal). Determines whether to log off all user sessions. Pass TRUE to log off all sessions, FALSE to log off the session specified in the lActivitySessionID argument.

lActivitySessionID

Long (ByVal). The ID of the session to log off. This argument is used only if the vbAllSessions argument is set to FALSE.