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

masterpowers's avatar

Session Talk

Hi I wanna know what is the best type of driver to use in Session case to case basis

i know we have file, database, redis and memcached...

Im interested in the three driver file, redis and database....

For Small Project Which is the Best?

For medium Project?

For Large Project?

Since Driver and Database is Easily Accessible in Laravel App without any futher configuration...

My Last Question is Does Anyone Of You Use Redis in Their Session?

How do you Implement it?

I never see any tutorial or walkthru using Redis as Session Handler

So Im Kinda Have a Blurred In my Mind, I hope Someone can light it up

0 likes
2 replies
lara30453's avatar

Hi, I use Redis as a session handler for a large project I am currently working on. I think it is very powerful and is better than memcached due to Redis 3.0 being released; more features than memcached, and more powerful I believe.

Read this post which will elaborate on what I have said http://blog.cloudmagic.com/2014/02/18/session-handling-for-1-million-requests-per-hour/

Also, it is very easy to get Redis session handler up and running, just set up the config in config/session.php and then change the session driver in your .env file. I have not fully explored it yet so I have not passed an intermediate stage of using it, however, it currently works like a charm!

masterpowers's avatar

any way i can verify i using redis as a session handler? its easy to config it to use redis, but i dont know if it is working or not, any test i can use to check if redis session is taking effect

Please or to participate in this conversation.