A cookie is a small piece of data stored by a web browser on behalf of a website to maintain state across requests. Cookies are commonly used for session management, personalization, and tracking. They can be session-based or persistent and may have security attributes. Example: A login session maintained using an authentication cookie.