Skip to main content

CISSP practice question · Identity and Access Management (IAM)

A tester logs out of a web banking app, then replays a request using the session token she captured before logging out.

A tester logs out of a web banking app, then replays a request using the session token she captured before logging out. The request succeeds. What should the application do?

  • AInvalidate the session on the server when the user logs out
  • BDelete the session cookie from the browser when the user logs out
  • CEncrypt the session token with a stronger cipher before issuing it
  • DIssue a fresh session token each time the user loads another page
Show the answer and explanation

Correct answer: A) Invalidate the session on the server when the user logs out

Logout must invalidate the session on the server; clearing the cookie in the browser alone leaves a captured token usable.

Why each option is right or wrong

  • A) Correct. Session state should be destroyed server-side at logout so that the token is rejected on any later use. OWASP session management guidance requires this, along with idle and absolute timeouts.
  • B) Incorrect. Removing the cookie only affects that browser. Anyone who copied the token can still present it, because the server still considers the session valid, which is what the tester showed.
  • C) Incorrect. The attacker replays the token as-is and does not need to read it. Encryption strength is irrelevant if the server accepts the token.
  • D) Incorrect. Rotating tokens can limit some attacks, but the most recent token would still work after logout unless the server invalidates the session.
Exam domain
Identity and Access Management (IAM) · 13% of CISSP
Question type
Multiple choice (one answer)

Practise the full CISSP exam

This question is one of a small free sample from the CertRidge CISSP bank. Full practice exams match the real exam's length, time limit and domain weights, explain every option, and Review Mode re-drills the questions you miss.

Original question written from the official exam guide. Not affiliated with ISC2; never copied from the real exam.