In TYPO3 is very useful to manage session variables in frontend plugins:
- Get 'test' variable: $test =
$GLOBALS['TSFE']->fe_user->getKey('ses', 'test');
- Save 'test' variable:
$GLOBALS['TSFE']->fe_user->setKey('ses', 'test', $test); $GLOBALS['TSFE']->fe_user->storeSessionData();