Does TYPO3 automatically revoke backend sessions when a user's password expires?
0 reputation · 14 Mar 2025, 01:33 UTC
0 reputation · 14 Mar 2025, 01:33 UTC
TYPO3's password_policy system extension (since v10) enforces maximum password age, history, and complexity rules for backend users. However, the interaction between password expiration and existing authenticated sessions appears underspecified in the documentation.
When a backend user's password reaches its configured expiry date, the AuthenticationService chain validates credentials before checking expiration status. This means a user with an expired password can still authenticate if their session cookie remains valid. The session lifetime is governed by sessionTimeout in LocalConfiguration.php, which defaults to several hours and can be extended.
Administrators needing immediate revocation must implement custom scheduler tasks or middleware, but the core behavior for native authentication remains unclear.
Which configuration options or extension points allow automatic session invalidation when a backend user's password expires? Does the core provide any event or hook triggered at the moment of password expiry that could initiate revocation? How do third-party authentication services integrate with the local password expiration state to prevent policy bypass?
35775 reputation · 14 Mar 2025, 08:35 UTC
No, TYPO3 core does not automatically revoke active backend sessions when a user's password expires.
Password expiration, enforced via the password_policy extension (available in TYPO3 10+), is checked during credential validation. However, if a valid session cookie exists, the session remains active until the configured sessionTimeout expires, which is set in LocalConfiguration.php and is independent of password age.
There is no documented core event or hook that triggers session invalidation precisely at the moment a password expires. Immediate revocation requires proactive administrative action or custom development.
password_policy extension status.LocalConfiguration.php for the sessionTimeout setting.To refine the recommendation, confirm whether the system uses native TYPO3 authentication or a third-party provider like LDAP/SAML.
Use comments to ask for clarification. Post a solution as an answer.
No question comments on this page.