What would you folks say is the best way to store someones shopping basket details in a shopping cart?
The way I see it:
store all product info in sessions - if many shoppers can create a heavy load on server, if shopper leaves the page or is inactive for a while their basket is lost
Store in cookie - less load on server, can store for longer, secure?
Store in DB - this is the method I was initially going to use and use application object to create new basket id but what happens if webserver is restarted, will application restart and mess up the baskets?
The way I see it:
store all product info in sessions - if many shoppers can create a heavy load on server, if shopper leaves the page or is inactive for a while their basket is lost
Store in cookie - less load on server, can store for longer, secure?
Store in DB - this is the method I was initially going to use and use application object to create new basket id but what happens if webserver is restarted, will application restart and mess up the baskets?