Important: #102906 - Prevent Extbase errorAction from writing session data
See forge#102906
Description
Previously, validation errors handled implicitly by the Extbase
Action persisted the resulting
Flash items to the user session.
If no session existed, a new session was generated and a session
cookie was sent to the client. This behavior could lead to automated crawlers
generating a large number of unnecessary sessions.
When
error is invoked (for example, due to validation
errors), flash messages are no longer persisted to the session but are
instead transferred with the corresponding
Forward.
The implementation introduces two new public methods in
\TYPO3\:
with- Adds flash messages to the forward responseFlash Messages (Flash Message ...$flash Messages) get- Retrieves flash messages from the forward responseFlash Messages ()
Flash messages are transferred through
Extbase when
forwarding requests and are restored from Extbase in
Action.
Hint
Custom code that overrides the internal methods
Action or
Action may need to be
adjusted to benefit from this change. Ensure that your custom
implementations properly handle flash messages via
\TYPO3\ when forwarding
requests from the error action.