[TYPO3-english] Changing fe_users Session Data
Christian Platt
christian.platt at pharmaline.de
Mon Nov 16 13:07:48 CET 2015
Hi folks,
i have a special question.
After Login, is there the possibility to change a value in fe_users session, so that the value is always accessible via
$GLOBALS["TSFE"]->fe_user->user
in the same session without writing it to harddisk?
I found out that you can add a key:
$GLOBALS["TSFE"]->fe_user->setKey("user“,"akey", $keyValue);
This can be found in $GLOBALS["TSFE"]->fe_user->uc;
and aftter writeUC() it is stored in
$GLOBALS["TSFE"]->fe_user->uc as json…
But that is not, what i like.
I would like to have set a property to the user
$GLOBALS["TSFE"]->fe_user->user[’special’]=‚Foo‘ which is initially empty or 0.
which i can access on another page by using
$GLOBALS["TSFE"]->fe_user->user[’special’] to use it.
Is there any possibility to do so?
Yours Christian
More information about the TYPO3-english
mailing list