java - 对于浏览器后退的控制
PHPz
PHPz 2017-04-18 10:04:25
0
3
606

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

PHPz
PHPz

学习是最好的投资!

reply all(3)
Peter_Zhu

Stay tuned,

伊谢尔伦

General websites will have an operation that cannot return to the login page after logging in
It is just a general routing jump. Enter this domain name, send a request, the backend receives the request, and determines whether to log in through the session. After logging in, jump to On a certain page, if you are not logged in, you will be redirected to the login page.

大家讲道理

To go back, I usually use onclick="javascript:history.back(-1);

Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template