search

Home  >  Q&A  >  body text

java - 对于浏览器后退的控制

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

PHPzPHPz2898 days ago612

reply all(3)I'll reply

  • 天蓬老师

    天蓬老师2017-04-18 10:06:25

    Stay tuned,

    reply
    0
  • 伊谢尔伦

    伊谢尔伦2017-04-18 10:06:25

    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.

    reply
    0
  • 大家讲道理

    大家讲道理2017-04-18 10:06:25

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

    reply
    0
  • Cancelreply