Asp.net登录问题后退按钮 [英] Asp.net Login issue with back button

查看:75
本文介绍了Asp.net登录问题后退按钮的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

用户登录后如果按下互联网浏览器的后退按钮,则会返回登录页面。但是,如果他们再次按下Internet Explorer的前进按钮,则不应该回到之前遍历的页面。

After user have logged in if they press the back button of internet browser, then they will back to login page. But if they again press forward button of internet explorer should not get back to the page which traversed before by them.

推荐答案

嗨亲爱的,



请尝试使用值为1和-1的代码



Hi Dear,

please try following code with value 1 and -1

<script language="javascript" type="text/javascript">
    window.history.forward(1);
</script>


您需要处理页面设计。使用浏览器按钮是不可取的,如果需要,请查看以下提示以了解您需要做什么:注销后的浏览器后退按钮问题 [ ^ ]
You need to handle your page design. It''s not suggestible to play with browsers button, still in case needed, have a look at following tip to know what you need to do: Browser back button issue after logout[^]


这篇关于Asp.net登录问题后退按钮的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆