Session cookies
Lesson 11 of 20 · Sec.Micro
HttpOnly, Secure and SameSite: three flags that block three attacks.
A script injected by XSS reads the cookie ✗ works
Someone on public Wi-Fi sniffs an http:// request ✗ works
An evil site makes your browser send a hidden form (CSRF) ✗ works
After you log in, the site gives your browser a session cookie. Whoever has it is you. Without flags, all three attacks in the table work.
Check yourself
Which flag stops JavaScript from reading a cookie?
Do it in the browser: a real cybersecurity tool, a short mission and instant feedback. No install.
Start this lesson — free