[TYPO3-dev] Session troubles

Steffen Kamper info at sk-typo3.de
Mon Mar 23 15:13:40 CET 2009


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.

vg Steffen




More information about the TYPO3-dev mailing list