java - 浏览器后退不退出系统
巴扎黑
巴扎黑 2017-04-18 10:02:31
0
1
796

对于浏览器的后退控制,如果不使用bom控制的话,我如何在后台进行控制,保证其在后退到登录页面的时候进行判断是否存在登录信息,初步的想法是拦截器去拦截,但是发现后退的路径名并不确定,且我已经使用*.do的控制方法,而不是/的全部筛选,一般网站都会有登录后无法再退回登录页的操作,想理解下是如何实现的,先行谢过,给个想法也行了。

巴扎黑
巴扎黑

reply all(1)
阿神

Write down the user’s browsing address and put it in a cookie or session. When the user returns to the login interface, the controller determines whether the user is logged in. If not logged in, the login page will be returned. If the user is logged in, the redirect will be redirected to the URL stored in the cookie or session.

Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template
About us Disclaimer Sitemap
php.cn:Public welfare online PHP training,Help PHP learners grow quickly!