Merge pull request #2086 from C17AN/patch-2

updated size unit from "kb" to "KB" - [#2085]
This commit is contained in:
Ilya Kantor 2020-08-27 15:55:14 +03:00 committed by GitHub
commit 721cbed9db
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -68,7 +68,7 @@ alert(document.cookie); // ...; my%20name=John%20Smith
```warn header="Limitations"
There are few limitations:
- The `name=value` pair, after `encodeURIComponent`, should not exceed 4kb. So we can't store anything huge in a cookie.
- The `name=value` pair, after `encodeURIComponent`, should not exceed 4KB. So we can't store anything huge in a cookie.
- The total number of cookies per domain is limited to around 20+, the exact limit depends on a browser.
```
@ -415,7 +415,7 @@ GDPR is not only about cookies, it's about other privacy-related issues too, but
`document.cookie` provides access to cookies
- write operations modify only cookies mentioned in it.
- name/value must be encoded.
- one cookie up to 4kb, 20+ cookies per site (depends on a browser).
- one cookie up to 4KB, 20+ cookies per site (depends on a browser).
Cookie options:
- `path=/`, by default current path, makes the cookie visible only under that path.