logout
Invalidates current login session
HTTP Method: | GET | |
---|---|---|
Parameters: | sid | user id for client section access |
password | user password for client section access | |
Returns: | HTTP code | 200 (OK) |
uid | user id | |
sid | session id |
Returns user id (uid) and session id (sid), which serves as authorization to other functions. The session is valid for 20 minutes from the last function call.
Return errors
Error code | HTTP response code | Description |
---|---|---|
2 | 403 (Forbidden) | Unable to log out |
CURL
curl "https://admin.hosting90.eu/api/logout?sid=%sid%"
PHP Library
$api->logout(array());
Example of data output
<?xml version="1.0" encoding="UTF-8"?>
<reply>
<status>
<code>0</code>
<text>You are logged out</text>
</status>
</reply>