Definition
- A cookie is a small piece of data stored on a user’s device by a web browser while the user is browsing a website. Cookies are used to remember user preferences, track user interactions, and provide personalized experiences on websites.
Examples
- Session cookies: Used to maintain user session data during a visit to a website and are deleted once the browser is closed.
- Persistent cookies: Stored on a user’s device across browser sessions and used for purposes such as remembering login information and user preferences.