You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Bug description
Data are not stored in session while using Redis. Before I was using Docker, session was working as expected, now I have migrated to Herd pro I made Redis service that I use for session. I can store data in session, but after page reload data is gone.
I set up fresh Laravel installation, same story. If I set SESSION_DRIVER=database then data is store as expected.
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
Uh oh!
There was an error while loading. Please reload this page.
-
Platform
macOS
Operating system version
Sonoma 5.1.1 (24B2091)
Chip
Apple M4 Pro
Herd Version
1.13.0 (Build: 37)
PHP Version
8.3.14
Redis version
7.0.0
Laravel version
v11.34.2
Bug description
Data are not stored in session while using Redis. Before I was using Docker, session was working as expected, now I have migrated to Herd pro I made Redis service that I use for session. I can store data in session, but after page reload data is gone.
I set up fresh Laravel installation, same story. If I set SESSION_DRIVER=database then data is store as expected.
Here is my .env values:
Here is image from Herd running redis service:
Here is how I am testing:
First run:
With result:

Second run:
dd(session()->all());
Result:

As we can see data is lost and _token is regenerated every time.
Is it intended to work like this? If not what am I missing and how can I fix the issue?
Beta Was this translation helpful? Give feedback.
All reactions