[Typo3-dev] how to set and retrive session data in a custom extension

JoH info at cybercraft.de
Mon Jul 12 17:51:03 CEST 2004


Have look at
TSref 14.0.1 --> Storing user-data or session-data
TSref 14.0.2 --> Using the built in "shopping basket"

There you will find anything you need ...

Joey

"Christian Melchior" <christian at ilios.dk> schrieb im Newsbeitrag
news:mailman.1.1089646564.30275.typo3-dev at lists.netfielders.de...
> This may be a very stupid question, but after looking through classes,
> documentation and the mailinglist for the last 4 hours, i'm getting
> desperate.
>
> At some point in my extension I have to set a session variable and later
on
> retrieve it.
> As far as I can tell this data has to be saved in the
> "fe_session_data"-table, but how do I do that.
>
> The only function I was able to find was in the  t3lib_userAuth-class, but
> after having tried to instanciate the class I get dbal-errors
>
> -- CODE begin-------------
> $sessionObj = t3lib_div::makeInstance('t3lib_userAuth');
> $sessionObj->start();
> -- CODE end ------------- 
>
> If someone know a solution, I would become a very happy man.
>
>
> regards,
> Christian
>
>






More information about the TYPO3-dev mailing list