Library/Networking & Protocols/What is a cookie
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

Start Practice
What is a cookie diagram

What is a cookie - System Design Diagram

Ready to practice?

Our AI coach will quiz you on this topic and give real-time feedback

Practice This Topic