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 ..

  1. i use amazon.com (just example, other e-commerse site) , keep on adding items in wishlist. (while have not yet logged in)
  2. i close browser , system , came next day or may after 10 days or longer time.
  3. i can see wish list there was.

  4. is amazon maintaining client side cookie on client side save data? data big , not reliable accuracy.

  5. are using guid on client side (for 1 year) , send server have data base sessionid mapping in db?
  6. 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

Popular posts from this blog

google api - Incomplete response from Gmail API threads.list -

Installing Android SQLite Asset Helper -

Qt Creator - Searching files with Locator including folder -