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

Trick's avatar
Level 1

Problem saving session in redis

Please understand that English translation is difficult for Korean users.

I have a question. I set the session driver and cache driver to redis. However, when I used the keys * command, the session is not saved.

test_cache: 0ji0NFJUJ7n2zC3PEyMluYlXAkt5cptTVJI8UnjX

Only cache is saved as above. I wonder what the problem is.

0 likes
2 replies
Trick's avatar
Level 1

CACHE_DRIVER=redis SESSION_DRIVER=redis

I set it in the env file as above.

After logging in from the site, I verified it with the keys * command. If the drive type is file, the session file is saved Currently, driver = redis, so I think test_session should be saved in redis.

test_session = 1234sadfasdfasdfsadf

I think it should be stored in redis as above.

Please or to participate in this conversation.