K
K
KiT2017-09-15 16:51:26
HTTP Cookies
KiT, 2017-09-15 16:51:26

What is the difference between cookies and browser local storage?

What is the difference between cookies and browser local storage?
At first glance, both seem to store the same data.

Answer the question

In order to leave comments, you need to log in

1 answer(s)
P
Peter, 2017-09-15
@petermzg

cookies
- Sent to the server on every request.
- Each entry has a lifetime
- Each entry has an access level
- Restrictions (approximate) IE - 4096 bytes in total for all domain cookies.
local storage
- Restrictions (approximate) - 5Mb for all domain data.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question