Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Help! When user clicks on checkout, he is logged off, and his shopping cart empties!!!!


leahmorel

Recommended Posts

I've just upgraded to the new version of osCommerce. When a customer logs in, adds items to the cart, and then goes to check out, they get logged off(the log off part of the menu disappears) and their cart is emptied!!

This only happens when I set enable_ssl to true in configure.php. I am using an ssl certificate from my hosting, so the https server is different from the http server.

If I set enable_ssl to false, it works fine.

 

PLEASE HELP!!!

Link to comment
Share on other sites

The problem is that the session is not being passed to the secure server.

 

What is the value for the STORE_SESSIONS constant in your includes/configure.php file?

 

Also ensure that the settings regarding SSL are correct in your includes/configure.php file.

"Great spirits have always found violent opposition from mediocre minds. The latter cannot understand it when a man does not thoughtlessly submit to hereditary prejudices but honestly and courageously uses his intelligence." - A. Einstein

Link to comment
Share on other sites

The problem is that the session is not being passed to the secure server.

 

What is the value for the STORE_SESSIONS constant in your includes/configure.php file?

 

Also ensure that the settings regarding SSL are correct in your includes/configure.php file.

 

Thank you. I had set the sessions to be saved in mysql because I was getting an error - tmp dir does not exist - sessions won't work until it is created. Do you know where this tmp dir should be created? I've put one in almost every folder on the server, and it is still not recognizing it.

Link to comment
Share on other sites

You are probably better off keeping the session information stored in mysql.

"Great spirits have always found violent opposition from mediocre minds. The latter cannot understand it when a man does not thoughtlessly submit to hereditary prejudices but honestly and courageously uses his intelligence." - A. Einstein

Link to comment
Share on other sites

Thank you so much for your help!

You are probably better off keeping the session information stored in mysql.

If I do so, is there any way to pass the sessions to the secure server, or do I need to install one on our server?

Link to comment
Share on other sites

Please post the contents of your includes/configure.php file *without* the database block and I will see if I can determine the reason for the failure.

"Great spirits have always found violent opposition from mediocre minds. The latter cannot understand it when a man does not thoughtlessly submit to hereditary prejudices but honestly and courageously uses his intelligence." - A. Einstein

Link to comment
Share on other sites

Please post the contents of your includes/configure.php file *without* the database block and I will see if I can determine the reason for the failure.

define('HTTP_SERVER', 'http://www.internet-security-inc.com'); // eg, http://localhost - should not be empty for productive servers

define('HTTPS_SERVER', 'https://dopey.alsonetworks.com/~internet-security-inc.com'); // eg, https://localhost - should not be empty for productive servers

define('ENABLE_SSL', true); // secure webserver for checkout procedure?

define('HTTP_COOKIE_DOMAIN', 'www.internet-security-inc.com');

define('HTTPS_COOKIE_DOMAIN', 'www.internet-security-inc.com');

define('HTTP_COOKIE_PATH', '/catalog/');

define('HTTPS_COOKIE_PATH', '/catalog/');

define('DIR_WS_HTTP_CATALOG', '/catalog/');

define('DIR_WS_HTTPS_CATALOG', '/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', '/home/virtual/site26/fst/var/www/html/catalog/');

define('DIR_FS_DOWNLOAD', DIR_FS_CATALOG . 'download/');

define('DIR_FS_DOWNLOAD_PUBLIC', DIR_FS_CATALOG . 'pub/');

 

// define our database connection

define('USE_PCONNECT', 'false'); // use persistent connections?

define('STORE_SESSIONS', 'mysql'); // leave empty '' for default handler or set to 'mysql'

 

Thank you so much for your time.

Link to comment
Share on other sites

Make a backup copy of your includes/configure.php file and then try using the following:

define('HTTP_SERVER', 'http://www.internet-security-inc.com'); // eg, http://localhost - should not be empty for productive servers
define('HTTPS_SERVER', 'https://dopey.alsonetworks.com'); // eg, https://localhost - should not be empty for productive servers
define('ENABLE_SSL', true); // secure webserver for checkout procedure?
define('HTTP_COOKIE_DOMAIN', 'www.internet-security-inc.com');
define('HTTPS_COOKIE_DOMAIN', 'dopey.alsonetworks.com/~internet-security-inc.com');
define('HTTP_COOKIE_PATH', '/catalog/');
define('HTTPS_COOKIE_PATH', '/~internet-security-inc.com/catalog/');
define('DIR_WS_HTTP_CATALOG', '/catalog/');
define('DIR_WS_HTTPS_CATALOG', '/~internet-security-inc.com/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', '/home/virtual/site26/fst/var/www/html/catalog/');
define('DIR_FS_DOWNLOAD', DIR_FS_CATALOG . 'download/');
define('DIR_FS_DOWNLOAD_PUBLIC', DIR_FS_CATALOG . 'pub/');

// define our database connection
define('USE_PCONNECT', 'false'); // use persistent connections?
define('STORE_SESSIONS', 'mysql'); // leave empty '' for default handler or set to 'mysql'

 

and let me know the results.

"Great spirits have always found violent opposition from mediocre minds. The latter cannot understand it when a man does not thoughtlessly submit to hereditary prejudices but honestly and courageously uses his intelligence." - A. Einstein

Link to comment
Share on other sites

What a waste of osCommerce. You click on a link to Add To Cart and it takes you straight to Pay Pal's website. And I just love the pop-ups :-)

 

Vger

Are you referring to the user's site or something else? :huh:

"Great spirits have always found violent opposition from mediocre minds. The latter cannot understand it when a man does not thoughtlessly submit to hereditary prejudices but honestly and courageously uses his intelligence." - A. Einstein

Link to comment
Share on other sites

I went to the users' site and that's what happened when using their catalog.

 

Vger

I had not checked so didn't know if that was what you were referring to or if you responded to the wrong topic.

 

Thanks for clarifying that! :)

"Great spirits have always found violent opposition from mediocre minds. The latter cannot understand it when a man does not thoughtlessly submit to hereditary prejudices but honestly and courageously uses his intelligence." - A. Einstein

Link to comment
Share on other sites

@Mariposa, the problem is usually due to improper settings in your includes/configure.php file for the SSL items.

"Great spirits have always found violent opposition from mediocre minds. The latter cannot understand it when a man does not thoughtlessly submit to hereditary prejudices but honestly and courageously uses his intelligence." - A. Einstein

Link to comment
Share on other sites

Make a backup copy of your includes/configure.php file and then try using the following:

define('HTTP_SERVER', 'http://www.internet-security-inc.com'); // eg, http://localhost - should not be empty for productive servers
define('HTTPS_SERVER', 'https://dopey.alsonetworks.com'); // eg, https://localhost - should not be empty for productive servers
define('ENABLE_SSL', true); // secure webserver for checkout procedure?
define('HTTP_COOKIE_DOMAIN', 'www.internet-security-inc.com');
define('HTTPS_COOKIE_DOMAIN', 'dopey.alsonetworks.com/~internet-security-inc.com');
define('HTTP_COOKIE_PATH', '/catalog/');
define('HTTPS_COOKIE_PATH', '/~internet-security-inc.com/catalog/');
define('DIR_WS_HTTP_CATALOG', '/catalog/');
define('DIR_WS_HTTPS_CATALOG', '/~internet-security-inc.com/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', '/home/virtual/site26/fst/var/www/html/catalog/');
define('DIR_FS_DOWNLOAD', DIR_FS_CATALOG . 'download/');
define('DIR_FS_DOWNLOAD_PUBLIC', DIR_FS_CATALOG . 'pub/');

// define our database connection
define('USE_PCONNECT', 'false'); // use persistent connections?
define('STORE_SESSIONS', 'mysql'); // leave empty '' for default handler or set to 'mysql'

 

and let me know the results.

Thank you very much, with a bit of adjusting, it worked!!!!!

Link to comment
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...