Changing the authentication timeout

By default the CS-Cart timeout is 2 hours, so after you will be automatically logged out.

To change it:

  1. Open the sessions.php file located in the core directory of your CS-Cart installation.
  2. Find and replace the following part of code there:
    define('SESSION_ALIVE_TIME', 7200);

    with this one:

    define('SESSION_ALIVE_TIME', TIMEOUT_IN_SECONDS);

    where TIMEOUT_IN_SECONDS is the timeout you want.
  3. Save the file.

Noticed an error in the article or it is not clear enough? Any suggestions to improve it? Please let us know by filling in the feedback form. Click here.