Definition
Cookie
In practice
Staying logged in after closing a tab often depends on cookies.
Read more
- 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.
- 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.