r/Hacking_Tutorials • • 6d 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.

  1. Open DevTools -> Application tab -> Cookies and select the site.
  2. Log in, then refresh the list. Note every cookie that appears, especially the session or auth one.
  3. Check the flags for each: HttpOnly, Secure, SameSite, Expires/Max-Age.
  4. Log out and watch which cookies disappear or change.
  5. 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

4 comments sorted by

0

u/peachGlow23 6d ago

Secure was the one that got me at first, felt weird seeing cookies not travel over plain http.

1

u/kinkySpiceee 5d ago

lol yeah the secure flag had me rethinking every login i do now

0

u/SparkleJoyGurl 6d ago

yeah the secure flag had me rethinking every log in i do now lol

0

u/sleekyRipple 5d ago

yeah secure tripped me up the first few times too, you ever get stuck on the samesite stuff or did that one click faster?