logout

Syntax

logout([userId], [sessionOnly=true])

Arguments

userId a string indicating a user name. It can only contain letters, underscores, or numbers. It cannot start with numbers. Its length cannot exceed 30 characters.

sessionOnly a Boolean value.

Details

If userId is unspecified, the user logs out herself.

If sessionOnly is true, the user logs out from the current session.

If sessionOnly is false, the user logs out completely from the current session, all data nodes, and the controller node.

An administrator can log out another user. If an administrator logs out another user, the user is logged out from the current session, all data nodes, and the controller node.

Examples

$ logout();

$ logout(`TomFord);

$ logout(, false);