Closing a browser tab doesn't invalidate a session on the server. A caller may retain the old cookie after logout, and a signed token can remain cryptographically valid after a password reset. The application needs a rule for deciding which earlier sessions still have permission.
These labs resolve an opaque identifier against a server-owned session table. A revoked record is refused even though it still exists. Later tasks also compare a stored session version with the current account version, invalidating older grants after a risk event.
Unknown identifiers must never create authenticated sessions implicitly. The in-memory table stands in for a shared session store; a production design must make logout and version changes visible across its servers. Preserve the current session and inspect both the retained old cookie and a completely unknown one.
Check current server state instead of trusting a retained cookie.