代码改变世界

【Asp.Net从零开始】:从Request中获取Cookies

2012-08-10 09:42  ATP_  阅读(499)  评论(0编辑  收藏  举报
HttpCookiesCollection cc = Request.Cookies;
string[] arr = cc.AllKeys();
int index = 0;
HttpCookie  myCookie;
 myCookie = cc[arr[index]];