如何避免表单认证2页 [英] How to avoid Form Authentication for 2 pages

查看:101
本文介绍了如何避免表单认证2页的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我已经使用窗体身份验证在我的web project.I不想窗体身份验证两个pages.How能避免这种情况?

I have used Form Authentication in my web project.I don't want Form Authentication for two pages.How can i avoid this ?.

推荐答案

写以下位置的标记与两个页面名称替换Logout.aspx和的Login.aspx页面名称。

Write the following location tags replace Logout.aspx and Login.aspx page names with your two pages name.

<location path="Logout.aspx">
  <system.web>
    <authorization>
      <allow users="*" />
    </authorization>
  </system.web>
</location>

<location path="Login.aspx">
   <system.web>
    <authorization>
      <allow users="*" />
    </authorization>
   </system.web>
</location>

这篇关于如何避免表单认证2页的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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