updated size unit from "kb" to "KB" - [#2085]

"kb" means "kilobit", some may confused about it.
so It'll be better to changed as "KB", as intended.
This commit is contained in:
Chan-Min, Kim 2020-08-27 10:33:17 +09:00 committed by GitHub
parent c1b38c8b4f
commit 2a6d552cbb
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" ```warn header="Limitations"
There are few 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. - 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 `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 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: 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.