Recall & Review
beginner
What is session management in cybersecurity?
Session management is the process of securely handling a user's interaction period with a system, ensuring their identity and data remain protected during that time.
Click to reveal answer
beginner
Why is it important to use secure cookies in session management?
Secure cookies ensure that session data is only sent over encrypted connections (HTTPS), protecting it from being intercepted by attackers.
Click to reveal answer
intermediate
What is a session hijacking attack?
Session hijacking is when an attacker steals or guesses a user's session ID to impersonate them and gain unauthorized access.
Click to reveal answer
intermediate
Name two best practices for secure session management.
1. Use short session timeouts to limit how long a session lasts.<br>2. Regenerate session IDs after login to prevent fixation attacks.
Click to reveal answer
beginner
What role does token expiration play in session security?
Token expiration limits how long a session token is valid, reducing the risk if a token is stolen by automatically invalidating it after a set time.
Click to reveal answer
Which of the following helps prevent session hijacking?
✗ Incorrect
Using HTTPS and secure cookies encrypts session data and prevents attackers from easily stealing session IDs.
What should happen to a session ID after a user logs in?
✗ Incorrect
Regenerating the session ID after login prevents session fixation attacks where attackers reuse old session IDs.
What is the main purpose of session timeouts?
✗ Incorrect
Session timeouts automatically end sessions after inactivity, reducing the risk of unauthorized access.
Which is NOT a secure practice for session management?
✗ Incorrect
Using HTTP sends data unencrypted, making session data vulnerable to interception.
What does the HttpOnly flag on a cookie do?
✗ Incorrect
The HttpOnly flag stops JavaScript from accessing the cookie, protecting it from cross-site scripting attacks.
Explain what secure session management means and why it is important in protecting user data.
Think about how websites keep you logged in safely.
You got /3 concepts.
Describe at least three best practices to ensure sessions remain secure during user interactions.
Consider what stops attackers from stealing or misusing sessions.
You got /4 concepts.