Be part of JetBrains PHPverse 2026 on June 9 – a free online event bringing PHP devs worldwide together.

pritam1605's avatar

Laravel not storing session data in Redis

Hello, I just decided to switch to Redis to store my session and cache data. But Laravel seem to using local file storage itself.

I have installed the predis composer dependency and have changed the config to:

SESSION_DRIVER=redis

REDIS_HOST=127.0.0.1
REDIS_PASSWORD=secret
REDIS_PORT=6379

also in the config/session.php file, I have used 'connection' => 'redis',. Still it seem to store all my login cookies and session data in the storage/framework/session

What do I need to do??

0 likes
0 replies

Please or to participate in this conversation.