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

Mick79's avatar

Session variables and multiple instances

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?

0 likes
2 replies

Please or to participate in this conversation.