Cookie Security Flags
Settings on cookies that limit how and when they are sent, protecting session data.
What it is
Cookies can carry flags that control their safety: Secure restricts them to encrypted connections, HttpOnly hides them from page scripts, and SameSite limits when they are sent with cross-site requests. Together these flags protect session cookies from theft and misuse. Missing flags on sensitive cookies is a common finding.
Why it matters
Properly flagged cookies are much harder to steal via scripts or leak over insecure connections, protecting user sessions.
How to fix it
Set Secure, HttpOnly, and an appropriate SameSite value on session and sensitive cookies, and scope them tightly.