Answered: LocalStorage - Multiple applications on the same domain issue
Hey Sencha world,
On the same domain I run my app which is basically an e-commerce app with a shopping cart where items are saved in the localStorage.
The app takes a company parameter on startup.
If I run the app as company A, I have some products stored into the localstorage.
Now, I run the same app as company B (= differents products), I still have the old company A's products referenced in the same localStorage.
As a result, if I add a product to my shopping cart, I end up with product refs from company A and B which is obviously not acceptable..
My idea of what's happening:
The localStorage is shared between the two companies because the app is running on the same domain with the same localStorage identifier. The solution might be to have different localStorage ids for each company.