Internet Explorer web.config isuue中的登录页面问题 [英] Login Page Issue in Internet Explorer web.config isuue
本文介绍了Internet Explorer web.config isuue中的登录页面问题的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我的登录页面在google chrome中正常工作
但它给我IE中的问题
当在我的web.config文件中写:
my login page work correct in google chrome
but its give me issue in IE
when In my web.config file I write :
<authentication mode="Forms">
<forms name="login" defaultUrl="Login.aspx" loginUrl="Login.aspx" timeout="120"/>
</authentication>
<authorization >
<allow users="admin,coal"/>
</authorization>
效果很好
但是当我写的时候:
It Works Fine
But When I Write :
<authentication mode="Forms">
<forms name="login" defaultUrl="Login.aspx" loginUrl="Login.aspx" timeout="120"/>
</authentication>
<authorization >
<allow users="admin,coal"/>
<deny users="?" />
</authorization>
登录页面不起作用,只是刷新页面
但我想拒绝匿名用户访问我的网站应用程序
谁能提出任何解决方案... ???
login page does not work it just refresh the page
but i want to deny anonymous user to my website application
Can any one suggest any solution...???
推荐答案
阅读以下内容:
ASP.NET中的表单身份验证和授权 [ ^ ]
通过将拒绝设置为?它允许任何经过身份验证的用户访问该页面.您需要将拒绝"设置为*(阻止所有人),仅允许下列出的例外情况.请尝试以下操作:
Read the following:
Form authentication and authorization in ASP.NET[^]
By setting deny to ? it allows any authenticated user to access the page. You need to set deny to * (Block everyone) with just the exceptions listed under allow. Try the following:
<authentication mode="Forms">
<forms name="login" defaultUrl="Login.aspx" loginUrl="Login.aspx" timeout="120"/>
</authentication>
<authorization>
<allow users="admin,coal" />
<deny users="*" />
</authorization>
这篇关于Internet Explorer web.config isuue中的登录页面问题的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文