Bug #91618

Typoscript access no longer possible to TSFE:fe_user|sesssionData

Added by Michael Christian about 1 year ago. Updated 10 months ago.

Status:
Rejected
Priority:
Should have
Assignee:
-
Category:
TypoScript
Target version:
-
Start date:
2020-06-08
Due date:
% Done:

0%

Estimated time:
TYPO3 Version:
9
PHP Version:
Tags:
Complexity:
Is Regression:
Sprint Focus:

Description

Typoscript:
10 = TEXT
10.data = TSFE:fe_user|sessionData|lastListPage

Error with LTS-9:
Cannot access protected property TYPO3\CMS\Frontend\Authentication\FrontendUserAuthentication::$sessionData
in typo3\sysext\frontend\Classes\ContentObject\ContentObjectRenderer.php line 5257

My workaround:
Use a typoscript preUserFunc with: "$GLOBALS["TSFE"]->fe_user->getKey("ses",$conf['sessionKey']);"

Could someone fix this please, so that direct TS-access is possible again. :-)

#1

Updated by Michael Staatz about 1 year ago

Maybe you could help your self...
Look at: https://docs.typo3.org/c/typo3/cms-core/master/en-us/Changelog/8.7/Feature-80154-RetrieveSessionDataInTS.html
Visibility off SessionData has changed long time ago.

best
Michael

#2

Updated by Georg Ringer 10 months ago

  • Status changed from New to Rejected

checkout https://docs.typo3.org/c/typo3/cms-core/master/en-us/Changelog/8.7/Feature-80154-RetrieveSessionDataInTS.html

so this should be possible with

page.10 = TEXT
page.10.data = session:myext|mydata

Also available in: Atom PDF