Avoid multi-store, tabbed browsing (session clash) issues for Embedded Public Apps in Shopify
I have created a simple embedded public app in shopify using node js . It works properly . I use session for the shop authendication . based on the shopid in the session app display the relevant app data.
while i opened two stores in same browser's different tab . I faced the issue of session clash.
For example shop domains
store2.myshopify.com were opened in same chrome browser.
First i opened store1 it worked properly . Then i opened store 2 it changed the store1 app's session values. Now in both stores app displayed store2 record.
I dont know how to handle this . Please guide me how to resolve this issue