How To: Change Authentication Timeout

By default, the authentication timeout is 2 hours: once this period expires, you will be logged out automatically.

To change the authentication timeout, complete the following steps:

  1. Go to the root directory of your CS-Cart installation.
  2. Open the config.php file.
  3. Find the following part of the code:
// Session live time
define('SESSION_ALIVE_TIME', SECONDS_IN_HOUR * 2); // 2 hours
  1. Replace it with this code:
// Session live time
define('SESSION_ALIVE_TIME', TIMEOUT_IN_SECONDS);

Note

Replace TIMEOUT_IN_SECONDS with the desired timeout.

  1. Save the file.

Important

You’ll need to reapply these changes after you upgrade to a new version of CS-Cart/Multi-Vendor.


Big CS-Cart Update is Here Experience the New Admin Panel with Dark Theme