Web Security · Junior · Question 52 of 75

Why should a new session ID be issued right after login?

Explanation

If the ID stays the same before and after login, an attacker who set it in advance would share the victim's logged-in session.

Further reading

Problem with a question

Web Security · Junior · question 52

Test yourself

Take the Web Security · Junior quiz: questions and options are shuffled, and you get a review of your mistakes at the end.

Take this quiz