标签:request tput 格式 add decode var span 客户 问题
HttpCookie Cookie = new HttpCookie("Shop");
//服务端存入Cookie前先进行编码
Cookie.Values.Add(ShopId,HttpUtility.UrlEncode(ShopInformation, System.Text.Encoding.Default));
Cookie.Expires = DateTime.Now.AddMinutes(20);
Response.Cookies.Add(Cookie);
//客户端读取 按编码的格式进行解码
var Shop = Request.Cookies["Shop"][Key].ToString();
Shop = HttpUtility.UrlDecode(Shop,System.Text.Encoding.Default);
var ShopData = Shop.Split(‘,‘);
标签:request tput 格式 add decode var span 客户 问题
原文地址:http://www.cnblogs.com/KBokeys/p/6879724.html