Im currently developing a extension for Typo3 8.7 and want to store a GET-Parameter in the session of the frontend user. I know I can store it with $GLOBALS['TSFE']->fe_user->setKey('ses', 'foo')
but how could I hook into every page request?
If I use a hook I can't access $GLOBALS['TSFE']
(Because it is not loaded?).
If someone has an idea how to hook into every page request (frontend) and access $GLOBALS['TSFE']->fe_user
, it would be greatly appreciated.
您可以使用第20页通过TypoScript添加USER_INT脚本或插件(如果已经使用,则可以添加其他号码)
变量名称为$GLOBALS['TSFE']
,因此您可能永远无法访问它,因为您错过了结尾的S
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.