The Good, The Bad, and The Cookie: Core Security Features
The Security Trio: HttpOnly, Secure, and SameSite
Learn about the three critical security flags that protect cookies from common attacks.
This lesson introduces the HttpOnly, Secure, and SameSite flags. You will learn what each flag does, how it is configured, and which attack it prevents.
Approx. 3 min reading · Includes diagrams; allow extra time for reflection and linked resources.
About this learning content and editorial review
About this learning content: Courses, lessons, assessments, explanations and illustrations may be created with the help of artificial intelligence. We review and check the material and do our best to avoid incorrect or outdated information, but mistakes, omissions or ambiguous questions may remain. Please verify information before relying on it for professional, security, legal or operational decisions. Read the full notice or report an issue.
Your focus
What you’ll learn
- Define the purpose and function of the HttpOnly, Secure, and SameSite cookie attributes.