Skip to main content

You are not logged in. Your edit will be placed in a queue until it is peer reviewed.

We welcome edits that make the post easier to understand and more valuable for readers. Because community members review edits, please try to make the post substantially better than how you found it, for example, by fixing grammar or adding additional resources and hyperlinks.

Required fields*

8
  • @Gumbo So a.b.c.example.com can access the cookie with domain c.example.com? Commented Jul 18, 2012 at 5:09
  • 2
    very late follow up question to this one. My own experience and this: webmasters.stackexchange.com/questions/55790/… suggest that the domain of example.com will not be available to www.example.com, but this example suggests otherwise. Is this example wrong, or am I (quite possible) misunderstanding. Sorry for thread necromancy but wanted to make sure this excellent answer was 100% accurate for future confused newbies like me :) Commented Apr 9, 2014 at 2:43
  • 7
    this answer is a little outdated; see my answer below. Commented Jun 5, 2015 at 22:11
  • 1
    why not setting for example.com be available for www.example.com? (as it's a "www" sub of example.com? Commented Jan 26, 2016 at 4:57
  • Set-Cookie2 is itself obsolete. Continue to use Set-Cookie. Commented Aug 28, 2018 at 12:47