Use the terminate operation to close a specified session.
Request Packet Structure
A request XML packet terminating a specified session includes the terminate operation node:
<packet version="126.96.36.199"> <session> <termination> ... </termination> </session> </packet>
The terminate node is presented by type SessionTerminateInput (
session.xsd) and has the following graphical representation:
- The session-id node is required. It specifies the session ID. For info on how to retrieve the session ID, refer to the Retrieving Sessions List section. Data type: string.
Response Packet Structure
The terminate node of the output XML packet is presented by type SessionTerminateOutput (
session.xsd) and structured as follows:
- The result node is required. It wraps the response retrieved from the server. Data type: resultType (
- The status node is required. It specifies the execution status of the operation. Data type: string. Allowed values: ok | error.
- The errcode node is optional. Is returns the error code if the terminate operation fails. Data type: integer.
- The errtext node is optional. It returns the error message if the terminate operation fails. Data type: string.
The request packet terminating the session win ID a66734b looks as follows:
<packet> <session> <terminate> <session-id>a66734b</session-id> </terminate> </session> </packet>
<packet> <session> <terminate> <result> <status>ok</status> </result> </terminate> </session> </packet>
If the session was not found on the server, the response looks as follows:
<packet> <session> <terminate> <result> <status>error</status> <errcode>1013</errcode> <errtext>Session does not exist</errtext> </result> </terminate> </session> </packet>
Leave your comments on this page
Leave your feedback or question on this documentation topic below. For technical assistance, contact your hosting service provider or submit a request to Plesk support. Suggest new features for Plesk here. Discuss general questions on the Plesk forum. All offtopic comments will be removed.