API Documentation

User.Logout

User.Logout

Deletes the current session and effectively logs the user out. Will succeed even if the current session has already been terminated.

Parameters and required information

Here's a list of all the parameters you'll need to pass to the User.Logout method. All of the parameters are required unless otherwise noted.

SessionKey
The session key obtained from User.Login

Return Codes

Success

Status: success
Logon was successful. Response will contain a valid session key.
Status: fail
The call was not successful. Most likely because the XML that was received was not correctly formatted.

Error

101: The SESSIONKEY attribute is required in the USER_LOGOUT function
The SESSIONKEY was not passed along.

HTTP POST

<?xml version="1.0" encoding="utf-8"?>  
<request>  
	<sessionkey>string</sessionkey> 
</request>  
<?xml version="1.0" encoding="utf-8"?>
<mediasilo_response method="User.Logout" status="success">
	<sessionremoved>true</sessionremoved>
</mediasilo_response>