onmode and z arguments: Terminate a user session (SQL administration API)

Use the onmode and z arguments with the admin() or task() function to terminate the specified user session.

Syntax


1  EXECUTE FUNCTION
1 admin
1 task
2  (
2  "onmode" , "z" , "session_id"
2  ) ;
Element Description Key Considerations
session_id The session ID. The value must be an unsigned integer greater than 0, and must be the session identification number of a currently running session.

Usage

This function is equivalent to the onmode -z command.

Example

The following example terminates the user session with an ID of 14:
EXECUTE FUNCTION task("onmode","z","14");