public void SetCookie(string userName) { var userCookie = CmsUser(userName).ToDictionary(); var cookie = new ManageCookie(); cookie.RemoveCookie("APPUSER"); cookie.SetCookie("APPUSER", userCookie); LoginTime(userName); }
public void SetCookie(string userName) { var login = LoginTime(userName); var user = AppUser(login); var userCookie = user.GetBySerial(); var cookie = new ManageCookie(); cookie.RemoveCookie("AzRADMINUSER"); cookie.SetCookie("AzRADMINUSER", userCookie); }