← All methods

account.terminateSession

Ends one of the user’s other sessions. The current access_token cannot be ended this way.

Parameters

Parameter Type Required Description
session_id string yes The id from account.getActiveSessions.

Method errors

100Missing or unknown session_id, or it is the current session.

Response

1

Example

curl -s -X POST 'https://durovloh.net/api.php' \
  -d 'method=account.terminateSession' \
  -d 'access_token=USER_TOKEN'