html - How to maintain client session for shopping cart even when user has not logged in -
i have question, looked on google , other threads on stackoverflow well. did not accurate answer. please me redirect ..
- i use amazon.com (just example, other e-commerse site) , keep on adding items in wishlist. (while have not yet logged in)
- i close browser , system , came next day or may after 10 days or longer time.
i can see wish list there was.
is amazon maintaining client side cookie on client side save data? data big , not reliable accuracy.
- are using guid on client side (for 1 year) , send server have data base sessionid mapping in db?
- when once login amazon, wishlist , cart there. means might have beed updated client cookie.
i asked in interview design/architect question , got confused. wanted clear friends.
ideally need html5 , make use of local storage (http://dev.w3.org/html5/webstorage/)
a key value pair can saved below:
localstorage.setitem("basket", {"item":"product 1","price":100.50,"qty":2,"currency":usd});
Comments
Post a Comment