#Cookie session domain
1 messages · Page 1 of 1 (latest)
you can set domain.com to make it work with domain.com and sub.domain.com too
but not set it to work with domain1.com and domain2.com
this is my use case: I have two websites under the same domain:
1- abc.domain.com
2- xyz.domain.com
and for each website, I have different environments for dev, sandbox, and prod
example:
- dev.abc.domain.com (for dev)
- sandbox.abc.domain.com (for sandbox)
- abc.domain.com (for prod)
I want to make the cookie for each environment accessible by the two subdomains dynamically.
It should work setting the domain option in createCookie or in createSessionStorage cookie option