[Flow] confused about sessions
Christian Loock
chl at vkf-renzel.de
Wed May 21 14:08:56 CEST 2014
Sure you can.
In you case i would write a ViewHelper that injects you class and checks
for the session variable.
Your session object should be filled from the session, once you started
the session. You can do this by telling flow to automatically start it
for you, once you change a member of the object. See the session
handling part of the docs for details about that.
On 21.05.2014 14:07, Sasky, Patrick wrote:
> Hi Christian,
>
> Thanks for your reply.
>
> I knew the two links already, but this can not solve my problem.
>
> I didn't inject my session-class every action. I do this one-time.
> Like this in my StandardController:
>
> /**
> *
> * @Flow\Inject
> * @var \ILSS\Red\Domain\Model\Login
> */
> protected $login;
>
>
>
> But in every action I have to assign a variable for Fluid like this:
>
> $this->view->assign('userId', $this->login->getUserId());
>
> And this I do only to can use a condition in Fluid for checking
> whether user is logged-in.
>
> My login-logic only is a webservice connection to another system. So I
> can't login with included features of FLOW and I want only use the
> session handling. Is it possible?
>
> Thanks,
> Patrick
> _______________________________________________
> Flow mailing list
> Flow at lists.typo3.org
> http://lists.typo3.org/cgi-bin/mailman/listinfo/flow
--
Christian Loock
Web Developer
Renzel Agentur
www.renzel-agentur.de
More information about the Flow
mailing list