[英]Redirect on login page after log out on browser's back button on-click
Any good website like any one of the various services provided by google has a feature that on browser's back button on click it will redirect you to the login page again.任何像谷歌提供的各种服务一样的好网站都有一个功能,点击浏览器的后退按钮,它会再次将您重定向到登录页面。 I think google use some thing like CAS (maybe I am wrong, at this moment this is not what I want to know)!
我认为谷歌使用了CAS之类的东西(也许我错了,目前这不是我想知道的)!
How can we detect that button's on click and redirect user again to login page?我们如何检测该按钮的点击并再次将用户重定向到登录页面? Is there any configuration needed in org.apache.wicket.protocol.http.WebApplication or we can detect it from the MyLoginPage which extends org.apache.wicket.markup.html.WebPage ?
Is there any configuration needed in org.apache.wicket.protocol.http.WebApplication or we can detect it from the MyLoginPage which extends org.apache.wicket.markup.html.WebPage ?
Thanks.谢谢。
I think you have to deal with cacheability of your pages.我认为您必须处理页面的可缓存性。 In my application, the cache for pages is set to none, and any action of back button cause the browser to check the server for changes.
在我的应用程序中,页面缓存设置为无,并且后退按钮的任何操作都会导致浏览器检查服务器是否有更改。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.