cPanel

How-to change PHP session time

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

  1. Log in to cPanel.
  2. Click Select PHP Version.
    Select PHP Version Button
  3. Click Options.
    Switch to PHP options
  4. Click the session.gc_maxlifetime PHP value, select an option. The time is in seconds from 1440 (24 minutes) to 86400 (24 hours).
  5. Click the session.save_path PHP value, change it to /home/username/tmp/ replacing username with your cPanel username. Click another value to save the change.

Please note, session.save_path has to be changed to a different value for your custom session.gc_maxlifetime value to be respected.

Was this guide helpful?

Need help with this?

Open a ticket and link to this guide so our team can see what you have tried.

View support tickets

Power your business with Ecenica Hosting

Built for WordPress and serious websites. Fast, secure and supported by real people in the UK.

Ecenica hosting services represented by a connected red route across London