Definition
Local storage
In practice
Saving a draft UI theme preference in local storage.
Read more
- Cookies vs local storage
Cookies are small pieces of data the browser stores and often sends back to servers with requests. Local storage keeps larger key-value data in the browser for that origin and does not automatically attach it to every HTTP request.
- What are cookies on websites?
Website cookies are small pieces of data a site stores in your browser so it can remember information between visits or requests. They can keep you logged in, save preferences, or help analytics and advertising systems recognize activity.