#100787$GLOBALS['TSFE']->fe_user->setKey() seems not to create cookie "fe_typo_user"
Description
We’re currently working hard to bring powermail back to live in 12. One obstactle seems to be the session handling. In 12 all captchas are not working any more.
What we see was, that this code seems not to work any more:
# Create "fe_typo_user" cookie and store a value in the related database table
$GLOBALS['TSFE']->fe_user->setKey('ses', 'foo', ['foo' => 'bar']);
Can you please tell us what we’re missing here?
—-
Addition: So it’s not possible to read the value when page is reloaded with:
$GLOBALS['TSFE']->fe_user->getKey('ses', 'foo');Reviews 1
Related issues 1
History 910
-
Alex Kellner changed description 05/02/23, 13:25
-
Oliver Hader commented and changed status
NewNeeds Feedback 05/02/23, 13:48 -
Oliver Hader changed Related to #100173 05/02/23, 15:58
-
Oliver Hader commented 05/02/23, 15:59
\TYPO3\CMS\Core\Authentication\AbstractUserAuthentication::$dontSetCookienow seems to be alwaystrue, which avoids adding the session cookie via\TYPO3\CMS\Core\Authentication\AbstractUserAuthentication::setSessionCookie -
Oliver Hader changed
Related to #10017305/02/23, 16:14 -
Oliver Hader changed Related to #100695 05/02/23, 18:08
-
Gerrit Code Review pushed patch set 1 for main to change 78923 status
Needs FeedbackUnder Review 05/02/23, 18:43 -
Oliver Hader changed category target version Is Regression 1 05/02/23, 18:43
-
Oliver Hader commented and changed status
Under ReviewResolved done0 %100 % 05/03/23, 08:10Applied in changeset commit:7c9e38765241d6c7049939f949b9f1ad94a0d511.
-
Benni Mack changed status
ResolvedClosed 07/09/24, 12:56
Usually the middleware
\TYPO3\CMS\Frontend\Middleware\FrontendUserAuthenticatorwould call$frontendUser->storeSessionData();automatically.Can you please share a link to a powermail branch, that can be used for testing the behavior you described?