[TYPO3-dev] Session troubles

Marcus Krause marcus#exp2008 at t3sec.info
Mon Mar 23 16:19:18 CET 2009


Steffen Kamper schrieb:
> Steffen Kamper schrieb:
>> Hi,
>>
>> Sebastiaan van Parijs schrieb:
>>>
>>> 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
>>
>> that's wrong. It sets the key in the user session and marks a "change" 
>> flag, so that storeSessionData knows that something has been changed.
>>
>> You need to store it to database to make it persistent with
>> $GLOBALS['TSFE']->fe_user->storeSessionData();
>>
>> This is indeed a missing part in documentation
>> http://typo3.org/documentation/document-library/references/doc_core_tsref/4.2.0/view/1/14/#id4501321 
>>
>>
>> vg Steffen
> 
> i was wrong and you are right - it's done automatically for logged in 
> users.


He's trying to store data in an "anonymous session" which means there's 
no user logged-in.


Marcus.




More information about the TYPO3-dev mailing list