[TYPO3-english] sessions
Jacco van der Post
jacco at id-internetservices.com
Thu Aug 26 00:45:39 CEST 2010
Hi
I want the visitor to submit some forms with 1 question each, and keep
the data in a session. This works but only for the current form. After
submit button is clicked, earlier filled in data is lost. What am I missing?
$sessionData['answer'.($currentQuestion)] =
$this->piVars['DATA']['answer'.($currentQuestion)];
#$this->storeSession($sessionData);
$GLOBALS['TSFE']->fe_user->setKey('ses',
'tx_jptest_pi1', $sessionData);
$GLOBALS['TSFE']->fe_user->storeSessionData();
#$GLOBALS["TSFE"]->fe_user->fetchSessionData();
$sessionDataQ =
$GLOBALS['TSFE']->fe_user->getKey('ses', 'tx_jptest_pi1');
thx Jacco
More information about the TYPO3-english
mailing list