Save items for the previous session!
Posted on 2011-10-05
I'm doing a shopping cart coding using php and I'm stuck in how to save items in the shopping cart. For example, a user logged in and saved items in the shopping cart. Then, he decided to buy the items later so he logged out. When he logged in again, he should view what what items he has chosen from the pervious session in the shopping cart. I already created a session table in the database but don't know how to implement that in php.