0
0
Cybersecurityknowledge~5 mins

Secure session management in Cybersecurity - Cheat Sheet & Quick Revision

Choose your learning style9 modes available
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?
AAllowing unlimited session duration
BDisabling session timeouts
CSharing session IDs in URLs
DUsing HTTPS and secure cookies
What should happen to a session ID after a user logs in?
AIt should be regenerated
BIt should stay the same
CIt should be shared with other users
DIt should be deleted immediately
What is the main purpose of session timeouts?
ATo increase session duration
BTo limit how long a session remains active
CTo store user passwords
DTo share session data publicly
Which is NOT a secure practice for session management?
AUsing HTTP instead of HTTPS
BSetting secure and HttpOnly flags on cookies
CImplementing token expiration
DValidating session tokens on the server
What does the HttpOnly flag on a cookie do?
ADisables cookie expiration
BMakes the cookie visible to all websites
CPrevents client-side scripts from accessing the cookie
DAllows cookies to be shared across domains
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.