wuhuihui_dotnet
if (FormsAuthentication.GetRedirectUrl(customerID, false).ToLower().EndsWith("default.aspx")) {
        FormsAuthentication.SetAuthCookie(customerID, false);
                        Response.Redirect("VerifySignIn.aspx");
                    }                        
                    else {
                    
                        FormsAuthentication.RedirectFromLoginPage(customerID, false);
                    }                        
FormsAuthentication:身份操作
如果操作成功返回上次用户访问的页面
并写入cookie集合当中
否则
将已身份验证的用户重定向起初的URL....

FormsAuthentication.SignOut();移除身份验证票

分类:

技术点:

相关文章:

  • 2021-12-11
  • 2021-05-14
猜你喜欢
  • 2022-12-23
  • 2021-04-27
  • 2021-12-25
相关资源
相似解决方案