Is it possible to share cookies between the following subdomains??
sharepoint.server.com AND data.server.com
Is it possible to share cookies between the following subdomains??
sharepoint.server.com AND data.server.com
You can specify the cookie's domain in your header
Set-Cookie: name=value; domain=.mydomain.com
the .
in front of the URL makes the cookie available throughout any subdomain.
In RFC 2109, a domain without a leading dot meant that it could not be used on subdomains, and only a leading dot (
.mydomain.com
) would allow it to be used across subdomains.
According to MDN, leading dots are no longer required to include subdomains. Subdomains are now included within the domain declaration.