What is Cookie?
A small piece of data stored in the browser by a website to remember user preferences, login state, or tracking information.
Cookies are key-value pairs sent by the server and stored by the browser. They are automatically included in subsequent requests to the same domain. Uses include session management, personalization, and analytics tracking.
Security attributes include HttpOnly (prevents JavaScript access), Secure (HTTPS only), SameSite (prevents CSRF), Domain, Path, and Expires/Max-Age. GDPR requires user consent for non-essential cookies.