Forum Discussion
The above call will not terminate the existing user session, it's only meant to terminate an API session (basically invalidating the current "restapi.session_key" value).
There's no API call you can use to logout the community session from an external system, you're also not specifying if your community uses Lithium Authentication or it has an SSO integration and in case which type of integration.
What you could do is redirect the user browser to the default logout url:
${webUi.getUserLogoutPageUrl("/")}
Or you can reach out to Support and they can check with Professional Services on the effort to build a custom logout endpoint for your community.
Recently there was an API v2 method added for "Invalidating sessions" which I believe should include active UI sessions also:
I suggest giving it a try to see if that accomplishes what you're looking for.
Related Content
- 4 years ago
- 5 years ago
- 12 years ago