Why do PHP sessions break behind a load balancer by default?
- A Sessions expire too quickly
- B Session files are stored on the local disk of one server
- C Cookies are not sent
- D PHP disables sessions in clusters
Answer
Session files are stored on the local disk of one server
A request routed to a different server finds no session file. The standard fix is a shared store such as Redis via session.save_handler.





