Reputation: 609
I have a question, I looked on google and other threads on Stackoverflow as well. But did not get any accurate answer. Please help me redirect to ..
I can see the Wish list is there as it was.
Is Amazon maintaining Client side cookie on client side only to save data? But data will be too big and not reliable for accuracy.
I was asked this in Interview as design/architect question and I got confused. So wanted to clear it from you friends.
Upvotes: 2
Views: 2196
Reputation: 527
Ideally you need HTML5 and make use of Local Storage (http://dev.w3.org/html5/webstorage/)
A key value pair can be saved like below:
localStorage.setItem("Basket", {"item":"Product 1","price":100.50,"qty":2,"currency":USD});
Upvotes: 1