how we can set the cookie for all our domains
# support-questions-legacy
g
how we can set the cookie for all our domains
n
Hi @gwenael1249, Are all the different BOs on sub domains?
g
our context is different because our backoffices are on xxx.domain1.com yyy.domain2.com zzz.domain3.com
n
What are you using on your API layer?
g
the Auth is separated from the business API. - we use NodeJs for the auth API - we use 2 different APIs in PHP for each backoffice
r
You can’t set cookies across top level domains.
The way to solve this would be to create individual sessions for each of the api domains
Or, you could enable JWT based auth and send a JWT to these domains for session management.
g
thanks
r
Do these backend domains all have the same frontend (on the same url) or different frontends?
g
different urls because we have our old BO and our new BO and we want to use a unique auth solution for both.
r
I see. Then it’s best if you have different sessions for all of these and not try and share the same session
g
ok
but your solution is very cool.
r
Thanks
7 Views