Reputation: 2223
So I have Laravel project and Redis. SESSION_DRIVER
in my project .env file is currently set to file
. I want to change it to array
, but when I do so, the project stops working properly: I get logged off, and when I log in, I get redirected back to login page, being logged off again and again. What actions should I take to fix this and make my project work correctly with array
session driver?
Upvotes: 3
Views: 1699
Reputation: 62228
You may want to read up on the session documentation here. It specifically states that when using the array
driver:
array - sessions are stored in a simple PHP array and will not be persisted across requests.
Since the session does not persist, you will not be able to log in. Basically, the array
session driver is solely for testing purposes.
Upvotes: 3