简体   繁体   English

单击浏览器的后退按钮注销后在登录页面上重定向

[英]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.

相关问题 登录后重定向回页面 - Redirect back to a page after a login 我正在使用struts框架,注销后按我的浏览器“后退”按钮将转到上一个打开的页面。 如何发送到登录页面? - I am using struts freamwork, after log out when i pressed browser back button it is going to last opened page. How to send it to log in page? 用户注销后重定向到登录页面,然后使用Spring Security按下浏览器后退按钮 - redirecting to login page once user logs out and then presses browser back button with spring security 单击“重定向”按钮,终止我的会话并重定向到登录页面 - Kill my session and redirect to login page on click of Redirect button 注销后我单击浏览器中的后退按钮仍然可以访问页面,同时刷新它工作正常 - After logout when I click back button in browser still the page accessible while refreshing it works fine 单击注销按钮,终止会话并重定向到登录页面 - Kill session and redirect to login page on click of logout button 如果按下浏览器后退按钮,如何防止在Spring MVC中成功登录后返回登录表单? - How to prevent going back to login form after successful login in Spring MVC if browser back button being pressed? 阻止活动返回登录和注销按钮 - prevent activity back to log in and log out button 登录后重定向到特定页面 - Redirect to specific page after login 登录后重定向到请求的页面 - redirect to requested page after login
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM