[TYPO3-mvc] session data gets lost

Thomas Mammitzsch thomas at visualworx.de
Wed Aug 15 23:22:56 CEST 2012


hi guys,

i have a strange problem. I save data from an ajax call to the session. 
It works fine on Firefox and other browsers. When using google chrome on 
the remote server (subdomain) it looses frequently the last added data. 
I know that seems strange because it cannot really be a client side 
problem. When debugging in google chrome on localhost this never happens.
Due to some logging and debug_backtrace i think i found that the session 
is written after my own attempt (which seem to work) again by 
class.t3lib_flashmessagequeue->removeAllFlashMessagesFromSession() and 
then my last added value doesn't exist when storeSessionData() is called.

here is my code to save to the session:

private static $sessionkey = "whatsoever";

private static function setSession($data) {        										 
$GLOBALS['TSFE']->fe_user->setAndSaveSessionData(self::$sessionkey, $data);
}

private static function getSession() {
	return $GLOBALS['TSFE']->fe_user->getSessionData(self::$sessionkey);
}

any ideas on this one?

regards, Thomas


More information about the TYPO3-project-typo3v4mvc mailing list