且构网

分享程序员开发的那些事...
且构网 - 分享程序员编程开发的那些事

如何使用后退按钮会成功登录后回到登录页面prevent用户

更新时间:2023-12-02 13:38:28

您可以使用JavaScript来检查的cookie全成登录后,你会放弃。该JS将检查页当前负载和重定向非登录页面如果cookie存在。也有其他方法来做到这一点作为desctibed:
这里

You can use javascript that checks for cookie you'll give after successfull login. the js will check it onpage load and redirect to non-login page if the cookie exists. there are also other methods to do that as desctibed in: here