javascript - Delete Subdomain Local Storage -


i have 2 pages: www.site.com, promotional page user account , subscription purchase functionality, , app.site.com, subscription activated , used service.

i'm migrating more , more of www app remove issues this, have state in 3 places - in www. express.js server session, cookie stores token in domain '.site.com' shared both, , localstorage has user information in app.

when log-out or cookie/session expire in www., can remove cookie, need remove localstorage app. i've seen older posts mention iframes point parent domain child domain, ideally, in same action cookie deletion, i'd able delete localstorage of subdomain setting domain or else similar i'm overlooking.

is there modern way control localstorage sub-domains? thanks!


Comments

Popular posts from this blog

python Tkinter Capturing keyboard events save as one single string -

android - InAppBilling registering BroadcastReceiver in AndroidManifest -

javascript - Z-index in d3.js -