SessionLogout¶
Description: Revokes the current authenticated platform session or manager API token. The request has no parameters. Use the command over TCP or POST /session/logout through HTTP for supported session types. Revoking a manager API token immediately ends authorization on every TCP connection using it.
Access Control¶
🔐 Session Required: Account, customer, affiliate, or staff session. A manager API token is accepted over TCP only.
Request Parameters¶
None. The current session is identified by the authenticated token's sid claim.
TCP Request Example¶
{
"command": "SessionLogout",
"extID": "request-1",
"__token": "<compact Ed25519 session JWT>",
"data": {}
}
Response Example¶
{ "revoked": true }
A successful response means the session was revoked in the cache and its persistence operation was accepted. Platform authorization stops immediately; the response is not a SQLite commit acknowledgement.
Errors¶
| Status | Error | Description |
|---|---|---|
| 403 | INCORRECT_TOKEN |
Token is missing, invalid, expired, revoked, has no required sid, or belongs to an owner that is no longer enabled. |
| 403 | PERMISSION_DENIED |
An explicit manager API command scope does not include SessionLogout. |
| 503 | SESSION_GUARD_UNAVAILABLE |
SessionGuard is unavailable or could not accept the revocation into its persistence queue. A 503 does not report a synchronous SQLite commit failure. |
See the REST endpoint for HTTP request framing.