# Share the user session across different websites

**URL:** <https://forum.keycloak.org/t/share-the-user-session-across-different-websites/27353>\
**Category:** Securing applications\
**Tags:** authentication\
**Created:** [August 7, 2024, 1:28am UTC](https://forum.keycloak.org/t/share-the-user-session-across-different-websites/27353 "2024-08-07T01:28:19Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![markks41](https://avatars.discourse-cdn.com/v4/letter/m/aeb1de/32.png) [@markks41](https://forum.keycloak.org/u/markks41)\
**Post date:** [August 7, 2024, 1:28am UTC](https://forum.keycloak.org/t/share-the-user-session-across-different-websites/27353/1 "2024-08-07T01:28:19Z")

</div>

Hello guys,

First of all sorry if there exist any other topic talking about the same thing, i was trying to found something related but i didn’t found any.

The use case i want to replicate is the same that Google has with their services. When you try to go to **www gmail com** and you are not logged with any Google’s account you get redirect to **www accounts google com** (or something like that) and after complete the form with you credentials you get redirect to **www gmail com** but for example if you now go to **www youtube com** you have been authenticated so my question is how can i achieve that behavior with Keycloak?

I shall be grateful if someone share any doc o give me any idea about how to imitate that behavior.

---

<div class="post-metadata">

**Author:** ![xgp](https://yyz2.discourse-cdn.com/free1/user_avatar/forum.keycloak.org/xgp/32/2589_2.png) [@xgp](https://forum.keycloak.org/u/xgp)\
**Post date:** [August 8, 2024, 6:02pm UTC](https://forum.keycloak.org/t/share-the-user-session-across-different-websites/27353/2 "2024-08-08T18:02:32Z")

</div>

That’s exactly what Keycloak is for. A **single** sign on for all of your applications (Clients). I’d recommend starting with the documentation:

[https://www.keycloak.org/docs/latest/server\_admin/index.html](https://www.keycloak.org/docs/latest/server_admin/index.html)

[https://www.keycloak.org/docs/latest/securing\_apps/index.html](https://www.keycloak.org/docs/latest/securing_apps/index.html)

> **[Guides - Keycloak](https://www.keycloak.org/guides)**
>
> Keycloak is an open source identity and access management solution
