PDA

View Full Version : Shopping cart empty in SSL mode


jlaha
4-3-04, 10:32 PM
Hi. After trying to solve this problem myself for over a week now, I still haven't figured it out. I read the recent thread about this same problem, but when I checkout, my shopping cart is still empty.

I also tried the new SSL server URL. I was previously using:
https://lucky7.secure.powweb.com/

Here's my config file:

// Define the webserver and path parameters
// * DIR_FS_* = Filesystem directories (local/physical)
// * DIR_WS_* = Webserver directories (virtual/URL)
define('HTTP_SERVER', 'http://gotscooters.com'); // eg, http://localhost - should not be empty for productive servers
define('HTTPS_SERVER', 'https://gotscooterscom.secure.powweb.com'); // eg, https://localhost - should not be empty for productive servers
define('ENABLE_SSL', true); // secure webserver for checkout procedure?
define('HTTP_COOKIE_DOMAIN', 'gotscooters.com');
define('HTTPS_COOKIE_DOMAIN', 'gotscooterscom.secure.powweb.com');
define('HTTP_COOKIE_PATH', '/');
define('HTTPS_COOKIE_PATH', '/');
define('DIR_WS_HTTP_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', '/www/g/o/gotscooters.com/htdocs/');
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', 'mysql'); // leave empty '' for default handler or set to 'mysql'


Edit: ... I've never changed the settings in Admin > Configuration > Sessions. Currently, everything is set to false.

Session Directory /tmp
Force Cookie Use - False
Check SSL Session ID - False
Check User Agent - False
Check IP Address - False
Prevent Spider Sessions - False
Recreate Session - False

Do I have to change any of those values?

Thanks

stevel
4-4-04, 01:08 PM
Try:

define('HTTP_COOKIE_PATH', '');
define('HTTPS_COOKIE_PATH', '');

Everything else matches my setup (I assume you actually have entries for the database, username and password in your file.)

jlaha
4-4-04, 02:24 PM
Originally posted by stevel
Try:

define('HTTP_COOKIE_PATH', '');
define('HTTPS_COOKIE_PATH', '');

Everything else matches my setup (I assume you actually have entries for the database, username and password in your file.)

:( Unfortunately, those changes didn't work. (yes, the database settings are set... I removed them from the above posted code for security purposes.)

Anyone else have suggestions? I am beginning to think that since I modified osCommerce quite a bit (as you can see from my site, and especially the checkout process), I may have accidentally deleted some important code that is causing this. But, I tried running the default / out of box installation to see if it would work, and I was still having this problem.

Also, when I don't use SSL checkout, everything works perfectly. I know this is a SSL issue with variables not being passed in sessions, or something to that effect.

Edit: ... The problem straight out is with the variables not being passed from the non SSL to the SSL shopping cart. Basically, if you add a bunch of products to the non SSL cart, and then view the cart by manually typing the SSL address, it's empty. This is the exact problem. I hope that helps in identifying what's wrong.

jlaha
4-4-04, 03:01 PM
Ahh! I figured out the problem. Since I modified my checkout process to much, I realized when I had gone wrong. Thanks anyway.

Edit ... to be more specific, here's what happened. On the shopping cart page, I changed the main function buttons (like "Continue Shopping", "Update Cart", and most importantly "Checkout") from images (the default) to actual form buttons. I made sure the link action was the same as the image buttons were, but form buttons work differently when it comes to them acting like regular hyperlinks. So, I've taken appropriate steps to fix this problem.

Anyway, it's fixed now and I'm super happy.

Thanks again.