Is it possible to share a cookie between a domain and a sub-entity

I am trying to share a cookie between www.example.com and admin.other.example.com I can make it work with other.example.com, but there is no way to access the sub-subdomain

Edit: I process subdomains by defining a cookie domain as .example.com (note the first point)

+8
cookies subdomain
source share
1 answer

You can only share cookies between a domain and its subdomains . For example:

  • The cookie defined for example.com can be accessed at www.example.com and foo.bar.example.com
  • The cookie defined for www.example.com can be accessed by foo.www.example.com , but not by bar.example.com
+4
source share

All Articles