Session invalidation is the act of revoking active login tokens, cookies, or other session credentials so they can no longer be used to access an account. It is different from changing a password: if a stolen cookie is still valid, an attacker may stay logged in even after the victim resets their password. In practice, invalidation forces the service to reject the old session and require fresh authentication.
This matters in cyber security because cookie theft is a common payoff for malware, phishing, and fake installers. If an attacker steals a browser session from a developer machine, they may reach email, code hosting, or cloud tools without knowing the password. Defenders use session invalidation during incident response to cut off that access, often alongside password resets, token rotation, and device cleanup. Strong applications also support logout-all-sessions controls, short session lifetimes, and server-side token revocation to limit the value of stolen cookies.


