Skip to content

Commit

Permalink
Update cookies vs local storage vs session storage
Browse files Browse the repository at this point in the history
  • Loading branch information
sudheerj committed Aug 3, 2024
1 parent a6b3707 commit 940cb8b
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -1323,10 +1323,12 @@

| Feature | Cookie | Local storage | Session storage |
| --------------------------------- | ---------------------------------- | ---------------- | ------------------- |
| Accessed on client or server side | Both server-side & client-side | client-side only | client-side only |
| Lifetime | As configured using Expires option | until deleted | until tab is closed |
| 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 |
| Expiry | Manually configured using Expires option | Forever until deleted | until tab is closed |
| SSL support | Supported | Not supported | Not supported |
| Maximum data size | 4KB | 5 MB | 5MB |
| Accessible from | Any window | Any window | Same tab |
| Sent with requests | Yes | No | No |

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

Expand Down

0 comments on commit 940cb8b

Please sign in to comment.