[Flow] confused about sessions

Christian Loock brainshack at gmail.com
Wed May 21 13:03:17 CEST 2014


First of all:

Flow has User and authentication handling integrated, you might want to
lookup. Because then you have ViewHelpers that allow to check if the user
is authenticated or not.

You dont have to manually inject stuff for every action, you do it once in
your controller. If the Object has scope session, flow will automatically
deceide when it needs to start the session. There is a whole chapter about
session handling in the flow docs, you might want to read that.

Regarding Login:

http://docs.typo3.org/flow/TYPO3FlowDocumentation/TheDefinitiveGuide/PartIII/Security.html

Regarding Session Handling:

http://docs.typo3.org/flow/TYPO3FlowDocumentation/TheDefinitiveGuide/PartIII/SessionHandling.html

Hope this helps,

cheers


2014-05-21 12:46 GMT+02:00 Sasky, Patrick <patrick.sasky at ilss-logistik.de>:

> Hi there,
>
> I have some trouble to work with sessions, because I don't find sufficient
> documentation about sessions in FLOW.
>
> I tried to set up a simple user login. Users who logged in should see
> another menubar in header as the others. So I desire a practicable
> condition for Fluid to check for a valid session.
>
> My session-class I have designed with the Scope "session". I can start a
> session there by injecting this class into my StandardController. This
> works.
>
> But I have to do this in every Action again and again. Is there another
> way to start the session generally for all Actions? Then I can assign a
> variable for fluid and use it for a condition.
> It isn't possible to use the constructor, because it's too early and the
> class isn't initialized yet.
>
> Thanks in advance,
> Patrick
> _______________________________________________
> Flow mailing list
> Flow at lists.typo3.org
> http://lists.typo3.org/cgi-bin/mailman/listinfo/flow
>


More information about the Flow mailing list