We are facing a strange situation with losing carts upon Login or Logout (most probably log out).
We have a project running on DW 9.9.8. We have seen this behavior of carts lost before but not very often. But now we have stared to see this behavior a lot more often.
In this solution, we are using OrderContext. And what we see is that the information stored in the EcomOrderContextAccessUserRelation is lost and the cart is no longer attached to the user.
The cart object is still valid, the AccessUserCartId has the right information. Only the information on the EcomOrderContextAccessUserRelation is affected. And we suspect that this is happening upon logout from the website. It is also possible that it happens upon login to the website. The only thing that is certain is that the user logs out and when he logs in, the cart is lost.
It is very possible that we have not seen it very often because most customers are not logging out.
Anybody else faced a similar issue? What would be the possible areas that we should investigate?