Ejemplo n.º 1
0
        public void SetCookie(string userName)
        {
            var userCookie = CmsUser(userName).ToDictionary();
            var cookie     = new ManageCookie();

            cookie.RemoveCookie("APPUSER");
            cookie.SetCookie("APPUSER", userCookie);
            LoginTime(userName);
        }
Ejemplo n.º 2
0
        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);
        }