gonziis - 9 months ago

I am looking into Session and in documentation https://pyrocms.com/documentation/streams-platform/1.3/plugin/session 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 - 9 months ago

If you want - do a test and add put or set here: https://github.com/anomalylabs/streams-platform/blob/1.3/src/StreamsPlugin.php#L588-L590

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.