Cart Empties After Logging In

Old Install = 2.2.5

New Install = 4.2.1



HTTP = www.domain.com/store

HTTPS = secure.domain.com/store



I installed a fresh copy of 4.2.1. Then, I used the store import featured to pull the content from the 2.2.5 store. I can browse my new store and add items to the cart with no issues. As soon as I log in during checkout, my cart is emptied. It looks like my secure.domain.com session cookie is being reset when I log in. Anyone know how to fix this? It’s extremely frustrating.

Hello,



Probably you need to reconfigure these strings in [CS-Cart root dir]/config.php

from this view:



// Session options

// define('SESS_VALIDATE_IP', true); // link session ID with ip address

define('SESS_VALIDATE_UA', true); // link session ID with user-agent



to this:

[size=4]

// Session options[/size][size=4]

define('SESS_VALIDATE_IP', true); // link session ID with ip address[/size][size=4]

[size=4]// [/size]define('SESS_VALIDATE_UA', true); // link session ID with user-agent[/size]