+ 2
How to prevent user from going back to home page (when clicking back button) after logout?
I have built a website consist of login, register and home page using node.js. I want to prevent the user from going back to home page right after logout using javascript. Is there any solution?
5 odpowiedzi
+ 2
Since the browser pulls that page from cache, it doesn't matter what you do on that page, unless you add a JS check to see if the user is still authenticated... but that doesn't solve the problem of the page being in cache.
but this might help
https://stackoverflow.com/a/24591864/217374
+ 3
which authorization system you are using?
+ 1
Thanks it's working takrim
+ 1
Ray Welcome
0
takrim passport js