[Typo3] SESSIONTROUBLE.....getKey(), setKey().....but "updateKey()" ??

Kraft Bernhard kraftb at gmx.net
Tue Jun 21 13:29:18 CEST 2005


matthi wrote:

> $GLOBALS["TSFE"]->fe_user->setKey("user","myData", $myVars);

> If in page2 I recall $GLOBALS["TSFE"]->fe_user->setKey("user","myData", 
> $myVars); to store the values of this formPart I overwrite the so far 
> called data...no surprise at all, but how can I handle that ?

I think the solution to this is to first retrieve the data using getKey
and then merge the old with your new data (t3lib_div::arrray_merge_recursive_(overrule))

and write the result back ... at least that's how I did it (now and also before T3)


greets,
Bernhard
-- 
Kraft Bernhard
MOKKA Medienagentur <http://www.mokka.at>
T: +43 - 1 - 895 33 33 - 50



More information about the TYPO3-english mailing list