I want to make shopping cart which should be based on PHP cookies or Sessions.
Some points :
A- Only data will be fetched from database [like product name, product picture , product price etc].
B- No data insertion in database tables [untill user clicks on checkout process]
C- All shopping cart calculations would be handled through PHP cookies or session values.
Can someone guide in this regards [some code example] and which approach is better :
1- Cookie based
2- Session Based
Thanks in advance