Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Losing osCsid when Update button pressed


ChrisW123

Recommended Posts

Posted

I need help with this one... I'm having a problem where my website is changing the current osCsid value to a different value when the "Update" button on the shopping cart screen is pressed. This causes the user be redirected to the login screen when they try to Checkout.

 

Can someone point my in the right direction? I can't follow what is happening when "Update" is pressed in shopping_cart.php.

 

Here's the flow on my website of the problem:

 

1) A user (not logged in) adds a product to the Shopping Cart and clicks "Checkout".

 

2) At the login, the user logins in to his account and is directed to the checkout Delivery screen.

 

3) User clicks "View Cart" and then clicks the "Update" button. At this point the osCsid changes!

 

4) User clicks "Checkout" and goes to the login screen since the osCsid is different now.

 

Any help locating the possible file or routine that could be causing the problem would be greatly appreciated. I must have made a mistake somewhere because my other test website doesn't have this problem. And both sites are setup in Admin > Sessions the same way:

 

Allow AutoLogon Cookie - false

Session Directory - /tmp

Force Cookie - false

Check SSL Session ID - false

Check User Agent - false

Check IP Address - false

Prevent Spider Sessions - true

Recreate Session - false

 

Thanks, -Chris.

Posted

I fixed it... :) I had to change my configure.php cookie paths like this:

 

define('HTTP_COOKIE_DOMAIN', '/'); //'www.wholehealthvitamins.com');

define('HTTPS_COOKIE_DOMAIN', '/'); //'st60.startlogic.com');

 

But what is weird about this is, my other similar website which was not experiencing the problem, had the same configure.php settings and is on the same shared server! So why would the cookie path settings need to be different on one site but not on the other? This kind of bugs me. I did extensive code comparisons to between the two sites but no diffs of any importance.

 

Can anyone explain what the difference could be??? :)

Archived

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

×
×
  • Create New...