Setting session variable in twig
Created 5 years ago by gonziis

I am looking into Session and in documentation and there are examples used in twig. But why doesn't session_put or session_set work? Only reading functions work, I feel like it would be pretty convenient to set a quick session in my view, as I can work with requests in twig.

ryanthompson  —  5 years ago

If you want - do a test and add put or set here:

If it works - I can change it out to session_*.. I think that would be convenient indeed. I originally hindered it due to security concerns but I don't know how valid that concern is to be honest.