[TYPO3-german] Backend modul: Verwendung von $_SESSION nach Form-Postback?

Roland Müller webmaster at roland-mueller.info
Thu May 7 23:38:54 CEST 2009


habe das hier gefunden, aber geht trotzdem nicht:

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Backend
In Backendmodules Sessions are called by using:
$my_vars = $GLOBALS["BE_USER"]->getSessionData("tx_myextension");

you then will add your own values:
$my_vars['somevalue'] = "Hello World";

Don't forget to save the data to the session in the end:
$GLOBALS["BE_USER"]->setAndSaveSessionData ('tx_myextension', $my_vars);
Of cause $my_vars can be in a classwide context with $this->my_vars

http://wiki.typo3.org/index.php/Table_of_Contents_(XDG)#Using_sessions
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@

ich habe Session schon in fe extensions eingebaut ohne probleme. 
anscheinend scheint es im backend etwas problematischer zu sein.

Roland Müller schrieb:
> Hallo,
> 
> kann ich bei der Programmierung eines Backend Moduls nicht die PHP 
> Variable $_SESSION verwenden?
> Nach einem Formular-Postback sind meine Werte dann wieder aus der 
> Session draussen. Trick???
> 
> Danke+Gruß, Roland


More information about the TYPO3-german mailing list