按下后退按钮时可以访问未授权页面 [英] able to access unauthorise page when press back button

查看:56
本文介绍了按下后退按钮时可以访问未授权页面的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我使用表单身份验证机制通过web.config内容对用户进行身份验证,如下所示-
< authentication mode =表单">
< forms loginUrl ="login.aspx" timeout ="30"></forms>
</authentication>
<授权>
< deny users =?"/>
</authorization>>

I used form authentication mechanism to authenticate user with web.config content as below-
<authentication mode="Forms">
<forms loginUrl="login.aspx" timeout="30"></forms>
</authentication>
<authorization>
<deny users="?"/>
</authorization>>

when i logout the user is directed back to login page but when i press the back button the previous page is showing.How should i prevent this?

推荐答案

关闭缓存在所有页面上. 此处 [
Turn off caching on all pages. Here[^] - found it with google.


这篇关于按下后退按钮时可以访问未授权页面的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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