← 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?
- A.Keep the same id as before login
- B.Issue a new session id
- C.Put the id in the URL
- 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 →