All Posts

A thumbnail image

Store sessions in redis instead of files

Sessions are very useful to store information for specific time. In PHP, by default sessions are stored in files. However, what if you have a distributed architecture where a request can directed to any server node?