[TYPO3-dev] Keeping backend module settings across session

Kay Strobach typo3 at kay-strobach.de
Thu Jul 28 15:33:27 CEST 2011


Hi,

do not put to much data in this array and unset unused values if
possible ;).

It's not very good, if this array is to big ;)

Regards
Kay

Am 28.07.2011 14:58, schrieb Christian Weiske:
> Hello Kay,
> 
> 
> 
>>> Now we want to keep the data across the session (i.e. still have
>>> them after logging out and logging in again). How can I achieve
>>> that?
>>
>> $GLOBALS['BE_USER']->uc['name of setting'] = $value;
>> $GLOBALS['BE_USER']->overrideUC();
>> $GLOBALS['BE_USER']->writeUC();
>>
>> http://api.typo3.org/typo3v4/current/html/classt3lib__be_user_auth.html
> 
> That works perfectly. Thanks!
> 
> 


-- 
http://www.kay-strobach.de - Open Source Rocks

TYPO3 .... inspiring people to share!
Get involved: http://typo3.org




More information about the TYPO3-dev mailing list