Skip to content

Commit 940cb8b

Browse files
committed
Update cookies vs local storage vs session storage
1 parent a6b3707 commit 940cb8b

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

README.md

+4-2
Original file line numberDiff line numberDiff line change
@@ -1323,10 +1323,12 @@
13231323

13241324
| Feature | Cookie | Local storage | Session storage |
13251325
| --------------------------------- | ---------------------------------- | ---------------- | ------------------- |
1326-
| Accessed on client or server side | Both server-side & client-side | client-side only | client-side only |
1327-
| Lifetime | As configured using Expires option | until deleted | until tab is closed |
1326+
| Accessed on client or server side | Both server-side & client-side. The `set-cookie` HTTP response header is used by server inorder to send it to user. | client-side only | client-side only |
1327+
| Expiry | Manually configured using Expires option | Forever until deleted | until tab is closed |
13281328
| SSL support | Supported | Not supported | Not supported |
13291329
| Maximum data size | 4KB | 5 MB | 5MB |
1330+
| Accessible from | Any window | Any window | Same tab |
1331+
| Sent with requests | Yes | No | No |
13301332

13311333
**[⬆ Back to Top](#table-of-contents)**
13321334

0 commit comments

Comments
 (0)