<iframe src="https://www.googletagmanager.com/ns.html?id=GTM-M74D8PB" height="0" width="0" style="display:none;visibility:hidden">
Loading
Skip to NavigationSkip to Main Content
0D54z00007L6UqbCAFOkta Classic EngineIntegrationsAnswered2021-12-20T13:31:32.000Z2021-12-16T16:44:31.000Z2021-12-20T13:31:32.000Z

IlyaM.95519 (Customer) asked a question.

clearing user's session programmatically

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.


This question is closed.
Loading
clearing user's session programmatically