[TYPO3-mvc] session gone when creating.

Bastian Waidelich bastian.waidelich at typo3.org
Thu Dec 2 19:07:18 CET 2010


christian oettinger wrote:

Hi Christian,

> $GLOBALS['TSFE']->fe_user->setKey('ses', 'KEY', true);
> $GLOBALS['TSFE']->fe_user->storeSessionData();

looks good to me.

> When checking it in _initializeCreateAction the key is empty.

it should be "initializeCreateAction()" and your new- and createAction 
must not be "cachable":

Tx_Extbase_Utility_Extension::configurePlugin(
	$_EXTKEY,
	'Pi1',
	array (
		'Controller1' => 'new,create',
	), array(
		'Controller1' => 'new,create',
	)
);

HTH,
Bastian


More information about the TYPO3-project-typo3v4mvc mailing list