In this help guide we explain how you can change your PHP session time on your Ecenica web hosting or WordPress hosting plan.
Ecenica web hosting plans allow you set custom PHP settings and choose what PHP versions you want to run.
Steps to change your PHP session time
- Log in to cPanel.
- For help accessing your cPanel see Where do I log in to my hosting control panel.
- Click Select PHP Version.
- Click Options.
- Click the session.gc_maxlifetime PHP value, select an option. The time is in seconds from 1440 (24 minutes) to 86400 (24 hours).
- Click the session.save_path PHP value, change it to /home/username/tmp/php replacing username with your cPanel username. Click another value to save the change.
Please note, ession.save_path has to be changed to a different value for your custom session.gc_maxlifetime value is respected.