Exemple #1
0
        public static void SaveUserWeixinOpenId(string openid)
        {
            HttpCookie cookie = new HttpCookie(cookieOpenidKey, ASEDecrypt.Encrypt(openid));

            //cookie.Domain = cookie_domain;
            cookie.Path = "/";
            //cookie.Expires = DateTime.Now.AddDays(15);//15天之内面登录
            HttpContext.Current.Response.Cookies.Add(cookie);
        }
Exemple #2
0
        public static void SaveUserInfo(int customerno)
        {
            string     value  = string.Format("{0}:{1}", uid, customerno);//用户编号
            HttpCookie cookie = new HttpCookie(cookieUidKey, ASEDecrypt.Encrypt(value));

            //cookie.Domain = cookie_domain;
            cookie.Path    = "/";
            cookie.Expires = DateTime.Now.AddDays(15);//15天之内面登录
            HttpContext.Current.Response.Cookies.Add(cookie);
        }