2.8.14. Session lifetime

Warning!

If the session data of the sites of the hosting account is stored in one place, but the scripts of some of these sites override the session lifetime set in the hosting control panel, then the session data will be destroyed in less time. In such a situation, it is recommended to override in scripts and the storage location for sessions using session.save_path.

The parameter is responsible for the session lifetime session.gc_maxlifetime... It sets the time delay in seconds after which the data will be treated as "rubbish" and will potentially be removed.

  1. Openup PHP settings.
  2. Specify the desired value opposite "session.gc_maxlifetime" (the default is 1440, maximum you can specify 86400, which is equal to days) and save the changes:
  3. Wait approximately 10-15 minutes for the changes to take effect.
Content