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); }
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); }