Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Cart is emptying when switching to SSL


discomonkey

Recommended Posts

Posted

Hey os people,

 

My cart is emptying when switching over to SSL mode. for example, you go to my site, add a couple of things to the cart, and when you go to checkout, you switch from non ssl to ssl and you are at the log in screen, and the cart is empty at that point. If you go and re add the items and checkout, its fine. I'm guessing my items are somehow not transferring between the different sessions, although I'm not entirely sure how oscommerce handles its session data.

 

I had to put in a hack to fix another problem in my application_top to flush the ob buffer, but I don't think that has anything to do with what I'm dealin' with. Any ideas??

Posted
Hey os people,

 

My cart is emptying when switching over to SSL mode.  for example, you go to my site, add a couple of things to the cart, and when you go to checkout, you switch from non ssl to ssl and you are at the log in screen, and the cart is empty at that point.  If you go and re add the items and checkout, its fine.  I'm guessing my items are somehow not transferring between the different sessions, although I'm not entirely sure how oscommerce handles its session data. 

 

I had to put in a hack to fix another problem in my application_top to flush the ob buffer, but I don't think that has anything to do with what I'm dealin' with.  Any ideas??

This is a stab in the dark, but what are your sessions settings?

Posted

I'm on shared hosting

 

Session Director is set to /tmp

Force Cookie use is TRUE

the 3 Check settings are set to FALSE

Prevent Spider Sessions are set to TRUE

Recreate Session is set to FALSE

 

where you asking for these?

 

Site is here: http://www.martinadesigns.com/

 

I don't know if its non ssl -> ssl because when you make the switch to ssl the first time, it doesn't work, but when you make the switch the 2nd time in the same session, it does work.

Posted
I'm on shared hosting

 

Session Director is set to /tmp

Force Cookie use is TRUE

the 3 Check settings are set to FALSE

Prevent Spider Sessions are set to TRUE

Recreate Session is set to FALSE

 

where you asking for these?

 

Site is here: http://www.martinadesigns.com/

 

I don't know if its non ssl -> ssl because when you make the switch to ssl the first time, it doesn't work, but when you make the switch the 2nd time in the same session, it does work.

Try changing Force Cookie Use to False and see what happens. Also, check the cookie domain names and paths in the catalog/includes/configure.php file.

Posted

ok when Iturn off force cookie use, it works!

 

define('HTTP_COOKIE_DOMAIN', 'www.martinadesigns.com');

define('HTTPS_COOKIE_DOMAIN', 'martinadesigns.com');

define('HTTP_COOKIE_PATH', '');

define('HTTPS_COOKIE_PATH', '');

 

those are my paths. what could the problem be then?? I do want to force cookie use for search engine crawling purposes... I'm really not sure what other benefits from it would be other then a cleaner looking url box. what should I do next??

Posted

Set HTTP_COOKIE_DOMAIN to 'martinadesigns.com'. Then you can use Force Cookie Use. It will cause exactly the behavior you noted when the HTTP_COOKIE_DOMAIN and HTTPS_COOKIE_DOMAIN definitions are different. Also, make sure that these DOMAIN definitions match the domain of your _SERVER defines.

Posted
Set HTTP_COOKIE_DOMAIN to 'martinadesigns.com'.  Then you can use Force Cookie Use.  It will cause exactly the behavior you noted when the HTTP_COOKIE_DOMAIN and HTTPS_COOKIE_DOMAIN definitions are different.  Also, make sure that these DOMAIN definitions match the domain of your _SERVER defines.

Steve,

One quick question. I forced cookies a few days ago and immediately found that I was getting payment notices from Authorize.net but no orders were being recorded. I set force cookies back to false and all was well again. I've got www in both the http and the https cookie domains. Do you think if I took the www out of both it would work if I forced cookies again? I could try it real fast and see, but thought it might be less stressful just to ask first.

Posted

with cookie domains to work properly you need two periods, use www.martindesigns.com to match your http cookie domain

Archived

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

×
×
  • Create New...