jdez Posted March 23, 2006 Posted March 23, 2006 I did the standard setup of OSC and I can't get the shopping cart to work. Not sure what is happening. Sometimes items will stay in cart and sometimes not. Sometimes I will be kicked back to the login page as soon as I click on the cart link, and sometimes, it will let me see items in the cart. At no time was I ever able to proceed to checkout without being kicked back to the login page. I posted this item earlier and it was suggested that the cookie path was wrong. I tried several alterations with no success. Does anyone have any idea of were I would start to looking at fixing this problem? My web site is at http://www.earthcotton.com/catalog if you want to see what I am talking about. Thanks!
♥Vger Posted March 23, 2006 Posted March 23, 2006 Does anyone have any idea of were I would start to looking at fixing this problem? You still haven't got your http_cookie_domain right. It should be either www.yourdomain.com or just yourdomain.com Vger
jdez Posted March 24, 2006 Author Posted March 24, 2006 Here is what I have right now. I have tried: '/' 'earthcotton.com' 'earthcotton.com/' 'www.earthcotton.com' 'www.earthcotton.com/' 'http://www.earthcotton.com' 'http://www.earthcotton.com/' I have tried with and without SSL cookie paths indicated (currently I do not have SSL enabled yet). None of the paths seem to make any difference. I laso have cleard the cash on my brousers (ie 5.1 and Nescape 7) - the browsers are older, but I have also tried 'earthcotton.com' on a new browser as well. <?php /* osCommerce, Open Source E-Commerce Solutions http://www.oscommerce.com Copyright © 2003 osCommerce Released under the GNU General Public License */ // Define the webserver and path parameters // * DIR_FS_* = Filesystem directories (local/physical) // * DIR_WS_* = Webserver directories (virtual/URL) define('HTTP_SERVER', 'http://www.earthcotton.com'); // eg, http://localhost - should not be empty for productive servers define('HTTPS_SERVER', ''); // eg, https://localhost - should not be empty for productive servers define('ENABLE_SSL', false); // secure webserver for checkout procedure? define('HTTP_COOKIE_DOMAIN', 'earthcotton.com'); define('HTTPS_COOKIE_DOMAIN', ''); define('HTTP_COOKIE_PATH', 'earthcotton.com'); define('HTTPS_COOKIE_PATH', ''); define('DIR_WS_HTTP_CATALOG', '/catalog/'); define('DIR_WS_HTTPS_CATALOG', ''); define('DIR_WS_IMAGES', 'images/'); define('DIR_WS_ICONS', DIR_WS_IMAGES . 'icons/'); define('DIR_WS_INCLUDES', 'includes/'); define('DIR_WS_BOXES', DIR_WS_INCLUDES . 'boxes/'); define('DIR_WS_FUNCTIONS', DIR_WS_INCLUDES . 'functions/'); define('DIR_WS_CLASSES', DIR_WS_INCLUDES . 'classes/'); define('DIR_WS_MODULES', DIR_WS_INCLUDES . 'modules/'); define('DIR_WS_LANGUAGES', DIR_WS_INCLUDES . 'languages/'); define('DIR_WS_DOWNLOAD_PUBLIC', 'pub/'); define('DIR_FS_CATALOG', '/data/7/0/0/13/489176/user/499054/htdocs/catalog/'); define('DIR_FS_DOWNLOAD', DIR_FS_CATALOG . 'download/'); define('DIR_FS_DOWNLOAD_PUBLIC', DIR_FS_CATALOG . 'pub/'); // define our database connection define('DB_SERVER', '--------------'); // eg, localhost - should not be empty for productive servers define('DB_SERVER_USERNAME', '--------------'); define('DB_SERVER_PASSWORD', '-------------'); define('DB_DATABASE', '---------------'); define('USE_PCONNECT', 'false'); // use persistent connections? define('STORE_SESSIONS', ''); // leave empty '' for default handler or set to 'mysql' ?>
spax Posted March 24, 2006 Posted March 24, 2006 Could it be a session problem? Try storing sessions to mysql: define('STORE_SESSIONS', 'mysql'); Worth a try!
jdez Posted March 24, 2006 Author Posted March 24, 2006 Could it be a session problem? Try storing sessions to mysql: define('STORE_SESSIONS', 'mysql'); Worth a try! Ok. That did it. Thanks so much! Is there a downside to doing it this way regarding security? - There is a note to leave it blank so that the default handler can set it. - not sure why. Thanks! I am grateful for your help. :)
spax Posted March 24, 2006 Posted March 24, 2006 No, actually it is safer storing them to the database.
jdez Posted March 24, 2006 Author Posted March 24, 2006 No, actually it is safer storing them to the database. Thanks!
Recommended Posts
Archived
This topic is now archived and is closed to further replies.