[TYPO3-dev] Session troubles
Sebastiaan van Parijs
sebastiaan at framed.nl
Mon Mar 23 14:57:58 CET 2009
Marcus Krause wrote:
> Sebastiaan van Parijs schrieb:
>> Hey guys,
>>
>> Im using the usuall Session codes to store an retreave the Session
>> Data Array, with:
>>
>> $sessionData = $GLOBALS['TSFE']->fe_user->getKey( "ses","Data" );
>>
>> $GLOBALS['TSFE']->fe_user->setKey( "ses","Data", $sessionData );
>>
>> $sessionData = $GLOBALS['TSFE']->fe_user->getKey( "ses","Data" );
>>
>> print_r( $sessionData );
>>
>> For some strange reason the session isnt being stored, but outputted
>> correctly, [...]
>
> "The strange reason" might be the missing
> $GLOBALS['TSFE']->fe_user->storeSessionData();
>
>
> Marcus.
I was under the impression that:
$GLOBALS['TSFE']->fe_user->setKey( "ses","Data", $sessionData );
Would cover the "storeSessionData();" part of it all?
Am i missing something? Which one do i use to get this done?
SetKey or storeSessionData()?
Sebastiaan
More information about the TYPO3-dev
mailing list