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/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.