$ ./guess_the_languageCybersecurity
Cybersecurity · medium · #201

Why rotate a session id at login?

  1. It defeats fixation
  2. It shortens the cookie
  3. It speeds up lookup
  4. It enables remember-me
If the attacker planted the pre-login id, rotating means the one they hold is now useless.
Play Cybersecurity ▸