How we can manage a persistant storage for shopping cart in a php app. I am using cart table to store items added by logged in but I also want my shopping site to provide guest checkout out. So how will I manage both table cart data with php session data if user tries adding product with two devices with logged in and not logged in state. How the syncronization can be done in the best way in custom cart table and php session global so that both logged in and guest user checkouts smoothly.
Sorry if I left something unclear. Please help and suggest approach for different cases.