类型:转载 责任编辑:asp.net 日期:2007/05/23
热门软件下载:
ok.aspx页
if (!Context.User.Identity.IsAuthenticated)
{
Response.Redirect("login.aspx");
}
我还没有给
FormsAuthentication.SetAuthCookie( user, true );
为什么还通过验证了?
--------------------------
f。aspx页
最后我试了试
FormsAuthentication.SignOut();
FormsAuthentication.SetAuthCookie( user, true );
传给ok.aspx都是通过验证?
Context.User.Identity.IsAuthenticated.ToString()都是true
为什么?
网友回答:
web.config
<authentication mode="Forms">
<forms name="pp" path="/" loginUrl="Login.aspx" protection="All" timeout="30"/>
</authentication>
<authorization>
<deny users="?"/>
</authorization>
你的mode是windows