Sessions not persisting in Lumen PHP framework
问题 I'm using the Lumen (by Laravel) micro-framework for a project, and I'm having some trouble with sessions. I'm just testing the implementation now, but the problem I'm experiencing is that when I set a session variable and then refresh the page, the variable is no longer set. In my .env file I have: SESSION_DRIVER=cookie And I know that this is being picked up, because when I change it to memcached it throws an error (because I don't have memcached set up). I've enabled the middleware too: