Invalidates a session. A session is typically managed by a jsessionid-Cookie.
History# #
12/2019: logon1 has new return format
10/2021: new account deletion option
Request# #
<baseurl>/api/logout[?confirmed=1][&clearAuth=1] <baseurl>/logout (Legacy, don't use for new implementations)
Parameter # #
confirmed (optional)If that parameter exists, rthe logout will occur even if there is a unsent cart in the sessionclearAuth (optional) If that parameter exists, any long term auth cookie will be dropped too.unregister=true triggers a account deletion processuregmsg optional comment why to drop the account
Response# #
{"action": "Logout", "result": "logout_ok"}
result values:
| logout_ok | all fine, session is gone |
| hascart | This session has a unsentcart. |
| unregistered | unregister success |
A failure condition would be, if a unsent cart exists as part of that session. This case is not yet handled by the API.
