Reputation: 3084
I'm trying to share a cookie between www.example.com and admin.other.example.com I've being able to make it work with other.example.com, but there's no way to access the sub-sub-domain
Edit: I handle subdomains by defining the cookie domain as .example.com (note the first dot)
Upvotes: 9
Views: 2963
Reputation: 6454
You can only share cookies between a domain and its own subdomains. For example:
example.com
can be accessed by www.example.com
and foo.bar.example.com
www.example.com
can be accessed by foo.www.example.com
but not by bar.example.com
Upvotes: 4