Hi.
I have a legacy application in php 5.6, with the runtime at 3,600.
To give it greater availability, a new server was configured and a DO load balancer was used, this generated the problem that when changing the server, the user’s session is closed, to fix it, Sticky sessions were activated, but this forced me to add the SSL certificate. in Forwarding rules.
However, this started generating timeout with processes of more than 1 minute, I have done several tests and when I use Passthrought in Forwarding rules it allows processes of up to 5 minutes without generating timeout.
At this time I must choose between the user logout every time the server changes or processes fall for more than a minute. Is there a way to modify the timeout of the balancer when using SSL certificate?
This textbox defaults to using Markdown to format your answer.
You can type !ref in this text area to quickly search our full set of tutorials, documentation & marketplace offerings and insert the link!
Hi there @oscarricardosan,
I believe that it is not possible to change the timeout of the Loadbalancer.
What I could suggest instead is using a caching solution like Redis or Memcache to store your PHP sessions in.
You can take a look at this tutorial on how to setup a Redis server as a session handler for PHP on Ubuntu:
Hope that this helps! Regards, Bobby
Get paid to write technical tutorials and select a tech-focused charity to receive a matching donation.
Full documentation for every DigitalOcean product.
The Wave has everything you need to know about building a business, from raising funding to marketing your product.
Stay up to date by signing up for DigitalOcean’s Infrastructure as a Newsletter.
New accounts only. By submitting your email you agree to our Privacy Policy
Scale up as you grow — whether you're running one virtual machine or ten thousand.
Sign up and get $200 in credit for your first 60 days with DigitalOcean.*
*This promotional offer applies to new accounts only.