SimpleCart.JS Empty Cart Problem
I learned something new this evening, HTML5 LocalStorage persists it's information based on 3 things: scheme + hostname + port. This means that something stored at http://google.com will not be accessible by something at https://google.com.
I recently decided to use SimpleCartJS on a website for a simple shopping cart solution. We ran into a problem. If people added something to their cart, and then went to the checkout page, their cart was now empty. This is because the page on which we were adding the item to the cart, was unsecure (http) and the checkout page was secure (https). So, that shopping cart information wasn't available to the checkout page.
To solve the problem, we simply made the entire site secure. So it forces SSL on the user. Done!













