您的位置:首页 > 其它

发送请求cookies的处理

2016-06-29 12:58 225 查看
CookieCollection coll = new CookieCollection();
for (int i = 0; i < Request.Cookies.Count; i++)
{
HttpCookie oCookie = Request.Cookies.Get(i);
Cookie c = new Cookie();
c.Domain = Request.Url.Host;
c.Expires = oCookie.Expires;
c.Name = oCookie.Name;
c.Path = oCookie.Path;
c.Secure = oCookie.Secure;
c.Value = oCookie.Value;
coll.Add(c);
}
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: