On a nuxt.js project, using cookies I ran into this problem where if a user opens two tabs of the login page, logs in one tab then when going to the other tab, it is still on the login page ( I know I can redirect them if they try to log in but that's not what I'm trying to do) What I want to do is to refresh the page automatically. I have a user_id in the cookie that I can use to see if it changed but I don't know where to go from there. Any reference or examples of similar things/issues?
CodePudding user response:
If you're looking for a vanilla JS solution, you can look into watching for changes in localStorage
https://developer.mozilla.org/en-US/docs/Web/API/Window/storage_event
CodePudding user response:
It's a browser issue have you change your browser or are you sure are you using currently updated version or if you are still facing the same issue then uninstall your browser once then install updated version the problem will be resolve. click for more info