zoukankan      html  css  js  c++  java
  • 操作身份验证

    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();移除身份验证票
  • 相关阅读:
    工厂模式
    Bootstrap 日历
    处理乱码
    Eclipse常用快捷键
    C#_XML与Object转换
    jQuery选择函数
    Bootstrap如何正确引用字体图标
    js上拉加载、下拉刷新的插件
    js通用对象数组冒牌排序
    关于js跨域
  • 原文地址:https://www.cnblogs.com/wuhuihui_dotnet/p/199667.html
Copyright © 2011-2022 走看看