Page 1 of 1

oscommerce - cookies

Posted: Thu Oct 12, 2006 12:22 am
by B.Murali Krishna
hello,
i have a prob. with cookies when i installed the oscommerce code in local server,

ihave the config file as:

define('HTTP_SERVER', 'http://192.168.1.175/murali/shop'); // eg, http://localhost - should not be empty for productive servers
define('HTTPS_SERVER', 'http://192.168.1.175/murali/shop'); // eg, https://localhost - should not be empty for productive servers
define('ENABLE_SSL', false); // secure webserver for checkout procedure?
define('HTTP_COOKIE_DOMAIN', '192.168.1.175/murali/shop');
define('HTTPS_COOKIE_DOMAIN', '192.168.1.175/murali/shop');
define('HTTP_COOKIE_PATH', '/');
define('HTTPS_COOKIE_PATH', '/');
define('DIR_WS_HTTP_CATALOG', '/');
define('DIR_WS_HTTPS_CATALOG', '/');
define('DIR_WS_IMAGES', 'images/');
----
--------------------------------
----------
like that,
what modifications i need to do for enabling the cookies, so that i cant go for, cookies_usage.php file
instead of shopping_cart.php page,
please help me

Regards
Murali

Posted: Thu Oct 12, 2006 6:03 am
by miro_igov
How you open this server in your browser?

If you open it by typing http://localhost/murali/lootshack/shop , the cookies will not work because you specified an IP address

but if you open it with http://192.168.1.175/murali/lootshack/shop , there should not be a problem.