Auth0 domain cookie session issue with subdomains


We are trying to setup SSO authentication in our website, we have a particular escenario where we use the same app but with different access sub domains, like this:


Site A →

Site B → → proxy to

We want to authenticate an user in and reuse the same session in all subdomains.

However we are struggling with this setup because for some reason the user session information is lost when we change of subdomain, example:

Site A → User is logged and session is created

Site B → User change to site B and user information is lost (domain session cookie is still present)

Site A → User return to site A and user information is available again.

We added the cookie domain in our frontend client but still we have some issues when the app tries to access the user information in a different subdomain.

Has anyone done something similar?

what is the cookie domain value?

The cookie domain was like this, however, we could figure out what was the issue, it was related to some missing config in the frontend client and redirect rules in the loadbalancer.


1 Like

Hey @carlosn glad you hear you were able to get this sorted, and thanks for following up with the community!

1 Like

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.