Actions
Task #94243
closedIntroduce session cookie signature
Status:
Closed
Priority:
Should have
Assignee:
-
Category:
Performance
Target version:
-
Start date:
2021-05-31
Due date:
% Done:
100%
Estimated time:
TYPO3 Version:
11
PHP Version:
Tags:
Complexity:
Sprint Focus:
Description
Several performance analysis showed that AbstractUserAuthentication
takes a reasonable amount of processing time (~ 5-10% of total), even if a session ID are not given or invalid. In order to reduce database invocations for invalid sessions, a corresponding HMAC signature is added to HTTP cookie values.
Additional aspects¶
- requires change in testing-framework (probably use
UserSession->getCookieValue()
), see https://github.com/TYPO3/testing-framework/blob/d74a027a186d62e6218b8e29328449d9b97e259f/Classes/Core/Functional/FunctionalTestCase.php#L425
Next steps (out of scope for this issue)¶
- try avoid loading AbstractUserAuthentication in general
- probably check cookie signature in middleware already
- separate authentication into session-cookie vs. login-process
Actions