# Problems with logout in KC

**URL:** <https://forum.keycloak.org/t/problems-with-logout-in-kc/31374>\
**Category:** Configuring the server\
**Created:** [May 19, 2026, 9:55am UTC](https://forum.keycloak.org/t/problems-with-logout-in-kc/31374 "2026-05-19T09:55:10Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![MarcelloT](https://avatars.discourse-cdn.com/v4/letter/m/74df32/32.png) [@MarcelloT](https://forum.keycloak.org/u/MarcelloT)\
**Post date:** [May 19, 2026, 9:55am UTC](https://forum.keycloak.org/t/problems-with-logout-in-kc/31374/1 "2026-05-19T09:55:10Z")

</div>

I created a test realm with two clients (oidc). When I log in to client1, I can then access client2 without logging in. In keycloak, I see the active session for my user with both clients. When I log out on one of the two clients, the session is automatically closed in kc. The problem is that the other client remains logged in. I think it’s more correct for the user to be kicked out of the client. If so, how should this be implemented? Perhaps the problem is that the client is still using the token? Thanks

---

<div class="post-metadata">

**Author:** ![dasniko](https://yyz2.discourse-cdn.com/free1/user_avatar/forum.keycloak.org/dasniko/32/2969_2.png) [@dasniko](https://forum.keycloak.org/u/dasniko)\
**Post date:** [May 19, 2026, 3:51pm UTC](https://forum.keycloak.org/t/problems-with-logout-in-kc/31374/2 "2026-05-19T15:51:34Z")

</div>

You already got the relevant links regarding logout in this answer:

> [@SSO problems and doubts](https://forum.keycloak.org/t/sso-problems-and-doubts/31370/3):
>
> Keep things simple. Forget about iframes and implement standard federation with OIDC using the Authorization Code flow with PKCE. Then, for logout, there are several options depending on the user experience and the type of application you have. OIDC RP-Initiated Logout [1] OIDC Back-Channel Logout [2] [1] [Final: OpenID Connect RP-Initiated Logout 1.0](https://openid.net/specs/openid-connect-rpinitiated-1_0.html) [2] [Final: OpenID Connect Back-Channel Logout 1.0](https://openid.net/specs/openid-connect-backchannel-1_0-final.html)
