Will the cookies be shared across multiple subdomains, if all subdomains point to the same single website?

I would like to create website, which can behave differently based on subdomains.

If I set a certain cookie on subdomain A, can I read/access it on subdomain C?
Or the cookie binds to the subdomain?

>Solution :

I suggest you read this question post, in summary it says that what’s important is the domain parameter you define to set the cookie. What your looking for is something like this ".mydomain.com".

Leave a Reply