[TYPO3-dev] Session troubles

Sebastiaan van Parijs sebastiaan at framed.nl
Mon Mar 23 16:30:10 CET 2009


Marcus Krause wrote:
> 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.


Thanks so much, the suggestion is implemented and working, at long last!
Hope to return the favor, some day.
Cya,

Sebastiaan van Parijs




More information about the TYPO3-dev mailing list