After logout the user is directed to login page. Now, if user clicks on back button it should stay on login page itself. How can I make it possible by using code in java? I have used Servlet Filter... Tried invalidating session.I have even tried clearing cache(Expires, Cache-Control, Pragma).But got no success yet. Or maybe I’m using this in wrong way. Please guide me the correct way.
注销后,用户将被定向到登录页面。现在,如果用户点击后退按钮,它应该保留在登录页面上。如何通过在java中使用代码来实现它?我使用过Servlet过滤器...试过无效会话。我甚至尝试过清除缓存(Expires,Cache-Control,Pragma)。但是还没有成功。或者我可能以错误的方式使用它。请指导我正确的方法。
1 个解决方案
#1
0
The below posts might give you an idea about how to handle such cases
以下帖子可能会让您了解如何处理此类案例
- Prevent user from seeing previously visited secured page after logout
- How to disable browser back button after logout in JSP?
注销后阻止用户查看以前访问过的安全页面
如何在JSP注销后禁用浏览器后退按钮?
#1
0
The below posts might give you an idea about how to handle such cases
以下帖子可能会让您了解如何处理此类案例
- Prevent user from seeing previously visited secured page after logout
- How to disable browser back button after logout in JSP?
注销后阻止用户查看以前访问过的安全页面
如何在JSP注销后禁用浏览器后退按钮?