Problem with Force Cookies Set to True in osCommerce?
By default, an osCommerce installation would have a session setting “Force Cookies On = False”. The problem with such setting arises when your payment gateway sets the path where to return the result of transaction. This means that the session is lost.
In configuring the file includes/configure.php, you should always set the cookie path to:
define('HTTP_COOKIE_PATH', '/');
define('HTTPS_COOKIE_PATH', '/');
I recently encountered a problem by setting a different cookie path and every time I try to log in as a customer, I am redirected to a page that says Cookies must be enabled.
If you do not want to session IDs to be appended to your URLs, then I’d recommend for you to set force cookies to true in your admin configuration.
Tags: osCommerce