Existing user sessions are not invalidated when two-factor authentication (2FA) is enabled or disabled. This occurs because the `ContaoUser::isEqualTo()` function and serialized session data omit the two-factor state, allowing an attacker who already possesses a session to maintain access even after the account owner modifies their 2FA settings.