
IlyaM.95519 (Customer) asked a question.
Hello,
I need to be able clear user's session in Okta programmatically from the browser and from some code module.
I'm able to clear user's session in Okta from the browser by redirecting to post_logout_redirect_uri, however I can not clear user's session in Okta when I mimic the same approach from the code module.
In the document below:
https://developer.okta.com/docs/reference/api/oidc/*logout
there is a note stating that:
When making requests to the /logout endpoint, the browser (user agent) should be redirected to the endpoint. You can't use AJAX with this endpoint.
Perhaps it is related to my question, but I still wonder if there is a way to clear user's session from outside of the browser.
Thank you in advance.

Hello
I hope you are having a great day
Thank you for reaching us to help with your setup, in this situation you can use the information found in the link below to learn more about this topic:https://developer.okta.com/docs/reference/api/sessions/#session-token
you can also clear the user session from the Okta Dashboard, as you can see in the link below:
https://support.okta.com/help/s/article/Killing-an-End-User-Session?language=en_US
If you need further assistance you can also feel free to post this question on our Okta Developer Forums: https://devforum.okta.com, this is a place for the Okta developer community to interact.
Please let us know if this was useful and allow you to solve your problem.
Have a great day ahead
Regards
Henry Esquivel
Okta Inc