I am facing a big problem which is in the shopping cart !
I used this way to make my shopping cart system :
when I add a product to the shopping cart it adds it very well but the problem is in the session, it stores it in the server not in the client browser.
so if some body visit the website from another computer he can see the added products on his browser while it should be empty.
Is there a way to save it on the client side instead of the server side ??
If I were buying something and I have to move to another computer, I would expect to see my cart with previous products in that computer too, and if I had to re-type everything, for sure I’ll go to buy somewhere else..
Said that, you can use several methods to achieve your goal. Cookies, navigator LocalStorage, even a flash pluging.
I like very much this javascript library, which handles all this situation very well in a consistent manner:
http://pablotron.org/software/persist-js/
Best regards.