Recently I was asked in a interview to implement to e-commerce site .
One of the requirement was to maintain cart details across various devices .(i.e) if user adds a book from his iPhone , and when he again Login from his browser it should be available just like amazon
Should I have to maintain a separate table to maintain cart details per user , and a database call for every event . OR is there any other way of doing it