Terrence WongforTerrence W's Blogwongte.hashnode.net·Oct 8, 2022How to avoid keeping stale user session in idle tabs after logoutMaintaining up-to-date user session is easy, you can save the session/token in a js variable, in cookie, or in localstorage. However, if a user opens multiple tabs/windows for the same website, some may contain updated data when idle. For example, a ...10 likes·73 readsJavaScriptAdd a thoughtful commentNo comments yetBe the first to start the conversation.