I am in a situation that I can't really resolve after reading many questions/solutions on here. Basically I am writing a small shopping cart application. I was finding a way to store which items a user adds to their cart and I ended up using $_SESSION.
The problem is that all saved cart data gets lost after they close the browser. I can't rely on $_COOKIE because I need to store each "Add" to cart as a new Array, and I couldn't find a way to do it with cookies (plus it has a limit or whatever), I am really confused to what to do now.
I am saving the cart data even for guests, and using a DB is not an option for me. Any suggestions?