clear cart Data and recently viewed data when customer logs out

New Member
10 0 0



I followed  this link :,  in order to add the recently viewed items and add items to cart functionality which I was reading from my Java endpoints. But there is this issue that I am facing. Lets say I logged in with user A and viewed some items and add some items in my cart and then I logged out.  Now when I logged in with User B, he can see the same items added in cart and also same recently viewed items. Could you please help me deleting the cart items and recently viewed items when user logged out.



Thanks and regards