[Flow] TYPO3 Flow Session Management
Pankaj Lele
pankaj at lelesys.com
Fri Mar 21 08:28:20 CET 2014
Helo Matthias,
> Thanks for your reply.
>
> I don't think I ran into this bug because I use the version 2.1 so that
> should be fixed.
> I know scope session classes are the prefered way but in tests even
> that fails, that's the reason why I tested the session framework on a
> low level base. Anyway, Flow will throw an exception if I do not use
> start() method on SessionInterface, I think that is necessary, but I
> don't know why it starts always a new session(ID)
>
> I appreciate any helpful tips!
By using $this->session->start(); you are forcing Flow to start a new session.
In general Flow does not autostart a session.
To have a session autostarted on your indexAction(), add a annotation
@Flow\Session(autoStart = TRUE) and remove the line
$this->session->start(); then all will be fine!
-Pankaj
--
Pankaj Lele
CTO - Lelesys, India
http://www.lelesys.com
Twitter: @pankajlele
More information about the Flow
mailing list