private void CheckUserInfo() { string userName = Request.Form["txtLoginId"]; string userPassword = Request.Form["txtPwd"]; BLL.UserManager um = new BLL.UserManager(); msg = string.Empty; MODEL.User user = null; bool b = um.UserLogin(userName, userPassword, out msg, out user); if (b) { Session["userInfo"] = user; if (!string.IsNullOrEmpty(Request.Form["Remember_password"])) { HttpCookie cookie1 = new HttpCookie("cp1", user.LoginId); HttpCookie cookie2 = new HttpCookie("cp2", Common.WebCommon.GetStringMd5(user.PassWord)); cookie1.Expires = DateTime.Now.AddDays(3); cookie2.Expires = DateTime.Now.AddDays(3); Response.Cookies.Add(cookie1); Response.Cookies.Add(cookie2); } GoToPage(user); } }