Networking & Protocols
What is a cookie
Cookies are small text files stored on a user's machine by a web browser, enabling websites to maintain state across multiple requests. They are a core mechanism for session management, personalization, and tracking, but introduce security and performance considerations.
HTTP protocolSet-Cookie headerCookie headerSession cookiesPersistent cookiesXSS vulnerabilityHttpOnly flagSecure flagSameSite cookiesLocal storage
Practice this topic with AI
Get coached through this concept in a mock interview setting

What is a cookie - System Design Diagram
Ready to practice?
Learn step-by-step with diagrams, or get quizzed by an AI interviewer