Project

General

Profile

Actions

Bug #91618

closed

Typoscript access no longer possible to TSFE:fe_user|sesssionData

Added by Michael Christian over 4 years ago. Updated about 4 years 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. :-)

Actions #1

Updated by Michael Staatz over 4 years 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

Actions #2

Updated by Georg Ringer about 4 years 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
Actions

Also available in: Atom PDF