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.
You can add a USER_INT script or plugin through TypoScript using page.20 (or a different number if that's already in use)