🎙 Free live masterclass · Sun, 29 Nov, 7:00 pm IST · Java Full Stack roadmap Register free →
Skills101
← Quiz: Passwords and Authentication: all 10 questions

Quiz: Passwords and Authentication · Question 10 of 10

What should happen to the session id right after a successful login?

What should happen to the session id right after a successful login?

  1. A.Keep the same id as before login
  2. B.Issue a new session id
  3. C.Put the id in the URL
  4. D.Store the password in the session
Answer & explanation

Correct answer: Issue a new session id

Regenerating the id prevents session fixation, where an attacker plants a known id before login.

Can you get the rest right without peeking?

Take the timed Quiz: Passwords and Authentication quiz free. Pass it to earn XP and count towards your certificate.

Start the quiz →