why do you torture yourself so?
just create a cart and cart item table. you can always delete inactive carts later
Be part of JetBrains PHPverse 2026 on June 9 – a free online event bringing PHP devs worldwide together.
Right now when my users add products to their shopping cart it’s stored in file system session.
Sometimes they go as far as creating an account but not then purchasing - so I want to automatically email them with one of those ‘you left these products in your cart why don’t you buy them’ type emails.
How do I get my server to know which session is for the relevant user and get the cart details from it? I see with database sessions it can be assigned to a user ID so is switching to dB sessions the only way?
Please or to participate in this conversation.