Merge pull request #2838 from robertmcabee/master

fix formatting, change wording for clarity
This commit is contained in:
Ilya Kantor 2022-02-03 13:23:48 +03:00 committed by GitHub
commit 31d2b3399f
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -419,10 +419,10 @@ GDPR is not only about cookies, it's about other privacy-related issues too, but
## Summary ## Summary
`document.cookie` provides access to cookies `document.cookie` provides access to cookies.
- write operations modify only cookies mentioned in it. - Write operations modify only cookies mentioned in it.
- name/value must be encoded. - Name/value must be encoded.
- one cookie must not exceed 4KB, 20+ cookies per site (depends on the browser). - One cookie may not exceed 4KB in size. The number of cookies allowed on a domain is around 20+ (varies by browser).
Cookie options: Cookie options:
- `path=/`, by default current path, makes the cookie visible only under that path. - `path=/`, by default current path, makes the cookie visible only under that path.