DELETE Logout

DELETE /api/logout

Deletes a session from the Couchdb slycat database and it expires the sessions browser cookie.

Sample Request:

DELETE /api/logout HTTP/1.1
Accept: */*
Accept-Encoding: gzip, deflate, br
Accept-Language: en-US,en;q=0.9
Connection: keep-alive
Cookie: slycatauth=4326db67af3f46f3bbb77f338c3ca4c3; slycattimeout=timeout
DNT: 1
Host: localhost:9000
Origin: https://localhost:9000
Referer: https://localhost:9000/
User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_14_5) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/75.0.3770.80 Safari/537.36
X-Requested-With: XMLHttpRequest

Sample Response:

HTTP/1.1 204 Model deleted.
cache-control: no-cache, no-store, must-revalidate
connection: close
content-length: 0
content-type: text/html;charset=utf-8
date: Thu, 13 Jun 2019 19:50:28 GMT
expires: 0
server: CherryPy/14.0.0
set-cookie: slycatauth=4326db67af3f46f3bbb77f338c3ca4c3; expires=Thu, 13 Jun 2019 19:50:29 GMT
set-cookie: slycattimeout=timeout; expires=Thu, 13 Jun 2019 19:50:29 GMT
X-Powered-By: Express
Status Codes:
  • 200 OK – session deleted

  • 400 Bad Request – Bad Request no session to delete. or Bad Request on generic exception

  • 403 Forbidden – Forbidden, there was no cookie passed with the request

See Also