certify Posted September 1, 2009 Posted September 1, 2009 I am getting "Your Shopping Cart is empty!" from a new installation! Can anybody point me to the right direction?
satish Posted September 1, 2009 Posted September 1, 2009 generally if session ID is getting lost then this happens. Make sure Your cookie settings are ok. Satish Ask/Skype for Free osCommerce value addon/SEO suggestion tips for your site. Check My About US For who am I and what My company does.
certify Posted September 1, 2009 Author Posted September 1, 2009 Session Directory /tmp Force Cookie Use False Check SSL Session ID False Check User Agent False Check IP Address False Prevent Spider Sessions True Recreate Session False Is this right?
♥ecartz Posted September 1, 2009 Posted September 1, 2009 That should be fine (although if you are using file sessions, you may want to change the Session Directory, but you probably should be using mysql sessions anyway). The settings that are likely to be wrong would be the ones in the includes/configure.php file, e.g. define('HTTP_SERVER', ''); // 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', ''); define('HTTPS_COOKIE_DOMAIN', ''); define('HTTP_COOKIE_PATH', ''); define('HTTPS_COOKIE_PATH', ''); define('DIR_WS_HTTP_CATALOG', ''); define('DIR_WS_HTTPS_CATALOG', ''); define('STORE_SESSIONS', ''); // leave empty '' for default handler or set to 'mysql' these are the blank ones from prior to running the install. What do you have for these (you can leave off the rest of the configure.php file, especially the DB info)? Always back up before making changes.
satish Posted September 2, 2009 Posted September 2, 2009 Perform following checks: 1)The url that are getting generated do they have some oscsid. 1a)If Yes are these oscsid same before and after add to cart has been done. If oscsid has changed then we can say session id is getting lost. 2)In case oscsid not in url then check cookies for oscsid values and 2a)If Yes are these oscsid same before and after add to cart has been done. If oscsid has changed then we can say session id is getting lost. Satish Ask/Skype for Free osCommerce value addon/SEO suggestion tips for your site. Check My About US For who am I and what My company does.
gillwill Posted September 21, 2009 Posted September 21, 2009 I am getting "Your Shopping Cart is empty!" from a new installation! Can anybody point me to the right direction? I had this very same problem, also with not saving a customer logon session with my system that I was testing on "localhost" on Apache server in Windows XP. Changing the Cookie Domains and Cookie Paths to blank in the catalog\includes\configure.php file resolved this for me.
satish Posted September 26, 2009 Posted September 26, 2009 If session ID is lost this generally happens. Check the oscsid and make sure that it does not change. Satish Ask/Skype for Free osCommerce value addon/SEO suggestion tips for your site. Check My About US For who am I and what My company does.
Recommended Posts
Archived
This topic is now archived and is closed to further replies.