oscommerce - cookies

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
B.Murali Krishna
Forum Commoner
Posts: 28
Joined: Fri May 12, 2006 2:05 am
Location: Hyderabad,India
Contact:

oscommerce - cookies

Post 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
Last edited by B.Murali Krishna on Sat Dec 30, 2006 11:46 pm, edited 3 times in total.
miro_igov
Forum Contributor
Posts: 485
Joined: Fri Mar 31, 2006 5:06 am
Location: Bulgaria

Post 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.
Post Reply