r/Hacking_Tutorials • u/duskyWinks • 1d ago
Question Beginner exercise: Inspect cookies and their security flags after logging in
If you're learning how sessions are protected in web apps, pick any practice site that lets you create an account and log in.
- Open DevTools -> Application tab -> Cookies and select the site.
- Log in, then refresh the list. Note every cookie that appears, especially the session or auth one.
- Check the flags for each: HttpOnly, Secure, SameSite, Expires/Max-Age.
- Log out and watch which cookies disappear or change.
- Try the same login from an incognito window or different browser and compare the cookie values and flags.
Write down which cookies carry your identity and which flags are (or aren't) set. Doing this on a few sites shows where session tokens are left exposed to JavaScript or cross-site requests.
What cookie flag surprised you most on your first practice site?
1
Upvotes
1
u/peachGlow23 1d ago
Secure was the one that got me at first, felt weird seeing cookies not travel over plain http.