Quantcast
Channel: Developer to developer
Viewing all articles
Browse latest Browse all 9076

Anonymous cart sometimes not transferring on login

$
0
0

I am using Episerver Cms 9.3.2 and commerce 9.2.1. I am using cookie based Identity, and my user registration is copied from the Quicksilver demo site. User registration and login both work fine. The issue that I am having is an intermittent issue when a returning user that previously had items saved in the shopping cart logs in with items added as an anonymous user.

The issue is intermittent and this is a typical scenario.

1. User A has a line item in the cart.

2. User A logs out.

3. User A adds an item as an anonymous user to the cart

4. User A logs back in. The cart now shows 0 items

The line item still in the database, but the customerId does not correspond to any contact ids in the contact table. The Order Group name is default, the market is default but the OrderForm name is NULL

The cart is the default (using the default mediachase cart name, which is Default.) The user definately is logging in, I can see the 302 redirect and see that the anonymous user cookie has been replaced with the ASPXROLES cookie and Application cookie. The session Id is the same as when the user was ananymous. We are only using 1 market and the most basic of configurations.

I can post any additional information as needed. There is no pattern I can identify, the steps to reproduce will sometimes cause this to happen but also work successfully. The failure rate is about 50% of the time which is really frustrating. Any input will be greatly appreciated.


Viewing all articles
Browse latest Browse all 9076

Trending Articles