Exemple #1
0
        protected bool TryCookieLogin()
        {
            string Username = CookieHelper.Get("yhm");
            string Password = CookieHelper.Get("mm");

            usersBLL.CookieLogin(Username, Password, out Users user);
            if (user != null)
            {
                Session["current_user"] = user.userId;
                CurrentUser             = user;
                return(true);
            }
            return(false);
        }