[TYPO3-dev] Keeping backend module settings across session

Kay Strobach typo3 at kay-strobach.de
Thu Jul 28 14:19:48 CEST 2011


Hi,

should be possible as follows (not tested):

$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

Greetings
Kay

Am 28.07.2011 14:09, schrieb Christian Weiske:
> Hi,
> 
> 
> Our backend module currently stores data in the session as described in
> [1], using
>> $sessionData = $GLOBALS['BE_USER']->getSessionData('tx_myextension');
>> $GLOBALS['BE_USER']->setAndSaveSessionData('tx_myextension',
>>     $sessionData);
> 
> 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?
> 
> 
> 
> [1] http://wiki.typo3.org/wiki/Extension_Developers_Guide#Backend_2
> 


-- 
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