[Typo3-dev] Sessions in t3lib_SCbase

Wolfgang Klinger wolfgang at stufenlos.net
Wed Mar 17 18:19:07 CET 2004


 *hiya!*
On 17:00 Wed 17 Mar     , Volker Biberger wrote:
> I think it has to do with the extended class (tslib_pibase vs. 
> t3lib_SCbase). Are there corresponding calls in t3lib_SCbase? Is there 
> any way to find out how the t3lib_SCbase is used (Docs, debug-methods)?

 Just dive into the code... ,-)
 (there's so much to explore)

---
// retrieve
$settings = $GLOBALS['BE_USER']->getModuleData ($GLOBALS['MCONF']['name']);
// set
$settings['somesetting'] = 'somevalue';
$GLOBALS['BE_USER']->pushModuleData ($GLOBALS['MCONF']['name'], $settings);
---
(this will be saved in the database and is available in the next session)

or use this function: 
---
$GLOBALS["BE_USER"]->setAndSaveSessionData ('tx_myext', $data);
---
(this will get lost after your session ends)
(you retrieve the actual settings with:
$GLOBALS["BE_USER"]->getSessionData ("tx_myext");)
 

 bye
 Wolfgang
 






More information about the TYPO3-dev mailing list