# Force Keycloak to create one session by client id

**URL:** <https://forum.keycloak.org/t/force-keycloak-to-create-one-session-by-client-id/5383>\
**Category:** Configuring the server\
**Tags:** oidc\
**Created:** [October 14, 2020, 6:40pm UTC](https://forum.keycloak.org/t/force-keycloak-to-create-one-session-by-client-id/5383 "2020-10-14T18:40:18Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![lecogiteur](https://avatars.discourse-cdn.com/v4/letter/l/258eb7/32.png) [@lecogiteur](https://forum.keycloak.org/u/lecogiteur)\
**Post date:** [October 14, 2020, 6:40pm UTC](https://forum.keycloak.org/t/force-keycloak-to-create-one-session-by-client-id/5383/1 "2020-10-14T18:40:18Z")

</div>

Hi,

I´m not an expert.

I have two client id which are configured with open id connect.

We use authorization code flow.  
If you we use the same browser in order to log user on these two clients, Keycloak create one session for the two client (when we go on session of the user we see one session with two clients in table).

If we use different browser (one by client), Keycloak creates one session by client id.

The problem if use the same browser, if we logout the session. we revoke all client id.

Is it possible to create one session by client id for a user and how to do it?

---

<div class="post-metadata">

**Author:** ![diegosm](https://yyz2.discourse-cdn.com/free1/user_avatar/forum.keycloak.org/diegosm/32/1850_2.png) [@diegosm](https://forum.keycloak.org/u/diegosm)\
**Post date:** [December 8, 2020, 7:04pm UTC](https://forum.keycloak.org/t/force-keycloak-to-create-one-session-by-client-id/5383/2 "2020-12-08T19:04:49Z")

</div>

Do you solved it?

Im with same question.

---

<div class="post-metadata">

**Author:** ![Hardik](https://avatars.discourse-cdn.com/v4/letter/h/919ad9/32.png) [@Hardik](https://forum.keycloak.org/u/Hardik)\
**Post date:** [March 10, 2021, 9:26am UTC](https://forum.keycloak.org/t/force-keycloak-to-create-one-session-by-client-id/5383/3 "2021-03-10T09:26:06Z")

</div>

Hey i am on the same boat , any update ?

---

<div class="post-metadata">

**Author:** ![santosmken](https://yyz2.discourse-cdn.com/free1/user_avatar/forum.keycloak.org/santosmken/32/8385_2.png) [@santosmken](https://forum.keycloak.org/u/santosmken)\
**Post date:** [November 7, 2023, 7:45am UTC](https://forum.keycloak.org/t/force-keycloak-to-create-one-session-by-client-id/5383/4 "2023-11-07T07:45:31Z")

</div>

Any updates on how you solved it?

---

<div class="post-metadata">

**Author:** ![marknelissen](https://yyz2.discourse-cdn.com/free1/user_avatar/forum.keycloak.org/marknelissen/32/12247_2.png) [@marknelissen](https://forum.keycloak.org/u/marknelissen)\
**Post date:** [July 10, 2025, 1:25pm UTC](https://forum.keycloak.org/t/force-keycloak-to-create-one-session-by-client-id/5383/5 "2025-07-10T13:25:53Z")

</div>

Need this as well. What’s the solution?
