Lumen and Laravel do not use native PHP sessions. Accessing $_SESSION will not be from Lumen or Laravel. You can read it if you set session_start(); and have it across that but depending on what you want to do, you should maybe use the same session data or driver. Setting the session data in the database would allow you to grab them from both Lumen and Laravel respectively.
May 28, 2015
5
Level 9
Session sharing
Hi.
I am trying to get lumen into a project so i can start migrate or make new sections on Lumen. I needed a lightweight MVC framework so i choose Lumen. All went fine with few basic hacks. Now i am where i need to get sessions from $_SESSION. I understand that Lumen same as Laravel 'removes' super globals but how could i can access that $_SESSION or merge into Lumen session?
Any hints, ideas?
Thanks.
Level 65
Please or to participate in this conversation.