Level 104
Use the database session driver so the Session is not stored on whatever server serves a given Request.
1 like
Be part of JetBrains PHPverse 2026 on June 9 – a free online event bringing PHP devs worldwide together.
I've recently moved to Render (from Heroku) and I'm utilising autoscaling.
When my app is running on more than once instance, I am getting massive problems with parts of my code that rely on session variables. Am I right to assume that as users are passed between boxes then their session variables will be lost?
Is there another way to handle session variables when using a dockerised app across multiple instances?
Use the database session driver so the Session is not stored on whatever server serves a given Request.
Please or to participate in this conversation.