[TYPO3-mvc] session handling in extbase

Thomas "Thasmo" Deinhamer thasmo at gmail.com
Mon Jul 18 23:09:51 CEST 2011


Sebastian Kurfürst schrieb:
> this is right now not realistically possible, as we'd need proper
> dependency injection beforehand (and in fact, I am not sure about AOP).
> So, right now you need to do this by hand, by serializing /
> unserializing objects and storing them in the user session.

Any progress on that, as we now
have basic DI implemented?

I'm wondering how I can persist
user data in the session, but not
in the database?

In my case I need to store cart items
in the session as long as the user is
not logged in.

Is there a transparent way of doing
this without using something like this:

if(logged_in) {
   // write code with domain models/repositories
} else {
   // write code with TYPO3 fe_user session handling
}

I'd like to use some transparent code where I
can use the same logic in the controllers.

Any ideas?

Thanks a lot,
Thomas


More information about the TYPO3-project-typo3v4mvc mailing list