Issue Bug Closed

#100787$GLOBALS['TSFE']->fe_user->setKey() seems not to create cookie "fe_typo_user"

Alex Kellner 05/02/23, 13:23 updated 07/09/24, 12:56

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

History 910

  1. Alex Kellner changed description 05/02/23, 13:25

  2. Oliver Hader commented and changed status New Needs Feedback 05/02/23, 13:48

    Usually the middleware \TYPO3\CMS\Frontend\Middleware\FrontendUserAuthenticator would call $frontendUser->storeSessionData(); automatically.

    Can you please share a link to a powermail branch, that can be used for testing the behavior you described?

  3. Oliver Hader changed Related to #100173 05/02/23, 15:58

  4. Oliver Hader commented 05/02/23, 15:59

    \TYPO3\CMS\Core\Authentication\AbstractUserAuthentication::$dontSetCookie now seems to be always true, which avoids adding the session cookie via \TYPO3\CMS\Core\Authentication\AbstractUserAuthentication::setSessionCookie

  5. Oliver Hader changed Related to #100173 05/02/23, 16:14

  6. Oliver Hader changed Related to #100695 05/02/23, 18:08

  7. Gerrit Code Review pushed patch set 1 for main to change 78923 status Needs Feedback Under Review 05/02/23, 18:43

  8. Oliver Hader changed category target version Is Regression 1 05/02/23, 18:43

  9. Oliver Hader commented and changed status Under Review Resolved done 0 % 100 % 05/03/23, 08:10

    Applied in changeset commit:7c9e38765241d6c7049939f949b9f1ad94a0d511.

  10. Benni Mack changed status Resolved Closed 07/09/24, 12:56