Cookie share between sub domains

534 Views Asked by At

I have implemented cookie sharing between sub domains of my sites, but the issue is that not all cookies are shared. why this happens. Is there any cookie configuration that cookie becomes specific to site and could not be shared?

2

There are 2 best solutions below

2
On

Open inspector in Chrome -> switch to Application -> Cookies and see your cookies with all parameters. Make sure path, domain and http properties are correct.

2
On
  • You should be able to share the cookie by using a domain in format of ".domain.com" (dot and root domain) and your "path=/" always.
  • Double check that whenever you generate a cookie, you follow this rule.