# Unable to invalidate user session using keycloak-js

**URL:** <https://forum.keycloak.org/t/unable-to-invalidate-user-session-using-keycloak-js/1180>\
**Category:** Getting advice\
**Tags:** oidc\
**Created:** [February 6, 2020, 3:01pm UTC](https://forum.keycloak.org/t/unable-to-invalidate-user-session-using-keycloak-js/1180 "2020-02-06T15:01:09Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![dennervidal](https://yyz2.discourse-cdn.com/free1/user_avatar/forum.keycloak.org/dennervidal/32/335_2.png) [@dennervidal](https://forum.keycloak.org/u/dennervidal)\
**Post date:** [February 6, 2020, 3:01pm UTC](https://forum.keycloak.org/t/unable-to-invalidate-user-session-using-keycloak-js/1180/1 "2020-02-06T15:01:09Z")

</div>

Hello,

I’m having a problem to logoff when running multiple clients. I have some applications running in the same realm, but with different technologies. The first is a React app using a “Portal” client ID and the second is a Java spring application using “Incentives” client ID. After starting a impersonated session, I’m able to access both clients (they have different URL’s), the problem starts in the logoff scenario.

If I’m navigating on “Incentives” client and perform a logout, my KC adapter invalidates entire user session (expected behavior), invalidating “Portal” session too.

If I’m navigating on “Portal” client and perform a logout, only this client is invalidated, being possible to continue using “Incentives” on the user session.

I was unable to find some related info, since the JS lib have a few information about this. Anyone had a similar issue?

I’ve tried all keycloak-js version since v4.
