D. Jayesh
D. Jayesh

Reputation: 17

Cookie share between sub domains

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?

Upvotes: 0

Views: 537

Answers (2)

Simon Luckenuik
Simon Luckenuik

Reputation: 355

  • 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.

Upvotes: 1

Roman Hutnyk
Roman Hutnyk

Reputation: 1549

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

Upvotes: 0

Related Questions