我用的是vs2003开发,当我在web.config文件中进行身份验证和进行单点附录时,
我写了这样的语句:
<authentication mode="Forms">
<forms name=".mycookiedemo" loginUrl="login.aspx" protection="All" timeout="120"/>
</authentication>
当我加了这样的语句之后,从登录页导行到主页面的时候,怎么进都进不去,URL中出现这样语句:
http://localhost/SeaPrice/login.aspx?ReturnUrl=%2fSeaPrice%2fmain.aspx
这是怎么回事啊?
在我之前的系统里面用一点问题都没有啊,现在就不行了
求解决方法....
我写了这样的语句:
<authentication mode="Forms">
<forms name=".mycookiedemo" loginUrl="login.aspx" protection="All" timeout="120"/>
</authentication>
当我加了这样的语句之后,从登录页导行到主页面的时候,怎么进都进不去,URL中出现这样语句:
http://localhost/SeaPrice/login.aspx?ReturnUrl=%2fSeaPrice%2fmain.aspx
这是怎么回事啊?
在我之前的系统里面用一点问题都没有啊,现在就不行了
求解决方法....
登录button
FormsAuthentication.SetAuthCookie(TextBox1.Text.ToString.Trim, False)退出button
FormsAuthentication.SignOut()
Response.Redirect("../login.aspx")