OsCommerce - Sessions Directory error /tmp folder

 

When installing OsCommerce locally, you usually get this error "The sessions directory does not exist: /tmp. Sessions will not work until this directory is created."

To fix the issue, do the following:

  1. Open your configure.php located in your /catalog/includes folder. If your configure.php is not writable, make it writable by unticking the "Read-only" checkbox in General properties attributes.
    OsCommerce-writable-configure.php

  2. Browse for
    define('STORE_SESSIONS', ''); // leave empty '' for default handler or set to 'mysql'
  3. And change it to
    define('STORE_SESSIONS', 'mysql'); // leave empty '' for default handler or set to 'mysql'
  4. Save the file configure.php
  5. Refresh your website.

Facebook Page