判断代码:
if (findUser==true)
{System.Web.Security.FormsAuthentication.RedirectFromLoginPage(userName,false);}配置文件:
<location path="manage.aspx">
<system.web>
<authorization>
<deny users="?"/>
</authorization>
</system.web>
</location>
<authentication mode="Forms">
<forms name="oursnet" loginUrl="login.aspx" timeout="10" />
</authentication>以前测试都能成功,现在验证总是返回到login.aspx(即使给定了ReturnUrl)为什么?
if (findUser==true)
{System.Web.Security.FormsAuthentication.RedirectFromLoginPage(userName,false);}配置文件:
<location path="manage.aspx">
<system.web>
<authorization>
<deny users="?"/>
</authorization>
</system.web>
</location>
<authentication mode="Forms">
<forms name="oursnet" loginUrl="login.aspx" timeout="10" />
</authentication>以前测试都能成功,现在验证总是返回到login.aspx(即使给定了ReturnUrl)为什么?
例如
Main
跳转的时候把路径写成Main/manage.aspx
感觉像是cookies没被写入,身份错误。