Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Improve cookie path documentation #2608

Closed
1 task done
jsoref opened this issue May 10, 2019 · 1 comment · Fixed by #9133
Closed
1 task done

Improve cookie path documentation #2608

jsoref opened this issue May 10, 2019 · 1 comment · Fixed by #9133
Labels
Content:HTTP HTTP docs

Comments

@jsoref
Copy link
Contributor

jsoref commented May 10, 2019

Request type

  • Correction or update

Details

Cookies: Scope of cookies
has:

For example, if Path=/docs is set, these paths will match:

  • /docs
  • /docs/Web/
  • /docs/Web/HTTP

It needs a "these paths will not match" and "and thus the cookie will not be sent" section

@jmswisher jmswisher self-assigned this Aug 3, 2020
@jmswisher
Copy link

It's more complicated, see https://tools.ietf.org/html/rfc6265#page-16
Need an example with Path=/docs/; then subdirectories will match.

Need to update the same info in https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Set-Cookie

@chrisdavidmills chrisdavidmills transferred this issue from mdn/sprints Feb 23, 2021
@chrisdavidmills chrisdavidmills added the Content:HTTP HTTP docs label Feb 23, 2021
himanshugarg pushed a commit to himanshugarg/content that referenced this issue Sep 21, 2021
wbamberg added a commit that referenced this issue Sep 26, 2021
* Fixes #2608: adds negative examples for path matching:

* Update files/en-us/web/http/headers/set-cookie/index.md

Co-authored-by: wbamberg <will@bootbonnet.ca>

* Update files/en-us/web/http/headers/set-cookie/index.md

Co-authored-by: wbamberg <will@bootbonnet.ca>
@github-actions github-actions bot locked as resolved and limited conversation to collaborators Sep 26, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Content:HTTP HTTP docs
Projects
None yet
Development

Successfully merging a pull request may close this issue.

4 participants
@chrisdavidmills @jmswisher @jsoref and others