[TYPO3-mvc] Session doesn't save

Henjo Hoeksma me at henjohoeksma.nl
Tue Jun 12 00:38:22 CEST 2012


I guess these are not real snippets from your code ;-)

Did you dump the $_SESSION right after storing your session to see if it is
there?
Probably using a session key that is in use?

Kind regards,

Henjo

Problems are small because we learned how to deal with them.
Problems are big because we need to learn how to deal with them.


On Mon, Jun 11, 2012 at 11:17 AM, Dimanche Eat <dimanche at web-essentials.asia
> wrote:

> Hi all,
>
> I am getting stuck with a strange problem with session saving on my client
> server.
>
> I don't know why the session doesn't save or has been destroyed once it is
> redirected to other action.
>
> Please look at my code below:
>
>
> public function showAction() {
>        $this->generateSession('test')**;
>        $this->redirect('list');
> }
>
> public function listAction() {
>        $value = $GLOBALS['TSFE']->fe_user->**getKey('ses', 'param');
>
>        echo $value; // VALUE IS EMPTY
> }
>
> private function generateSession(value) {
>        $GLOBALS['TSFE']->fe_user->**setKey('ses', 'param', value);
>        $GLOBALS['TSFE']->fe_user->**storeSessionData();
> }
>
> I could not find the problem on my client server's environment since it is
> working on my development server. Tried to compare install tool and
> ext_localconf.php, but can not help.
>
> Does anyone have any ideas? Thanks in advance.
>
> Regards,
> Dimanche
> ______________________________**_________________
> TYPO3-project-typo3v4mvc mailing list
> TYPO3-project-typo3v4mvc@**lists.typo3.org<TYPO3-project-typo3v4mvc at lists.typo3.org>
> http://lists.typo3.org/cgi-**bin/mailman/listinfo/typo3-**
> project-typo3v4mvc<http://lists.typo3.org/cgi-bin/mailman/listinfo/typo3-project-typo3v4mvc>
>


More information about the TYPO3-project-typo3v4mvc mailing list