[TYPO3-dev] Session Handling Question

Patrick Rodacker patrick.rodacker at the-reflection.de
Thu Dec 20 18:24:34 CET 2007


Hi Marcus,

Marcus Schwemer wrote on 20.12.2007 09:03:

> Patrick Rodacker schrieb:
> 
>> Marcus Schwemer wrote on 19.12.2007 14:59:
>>
>>> I would ĺike to keep a user's session data while he is logging in, so
>>> that he/she does not have to enter the data twice. Is that possible? If
>>> yes, how can I achieve this?
>> yes. Where do you need it?
> 
> I need in in the frontend.
> 
> A user, who is not logged in, is selected a value in a html select box.
> I store it in a session value with
> 
> $GLOBALS['TSFE']->fe_user->setKey('ses', $this->prefixId.'[partner]',
> $partnerValue);
> 
> I would like to be able to have this value in the user session after he
> logged in.

try:

$GLOBALS["TSFE"]->storeSessionData();

and have a look at the wiki [1] or the class
typo3/sysext/cms/tslib/class.tslib_feuserauth.php

HTH
Patrick





More information about the TYPO3-dev mailing list