2012-12-19 43 views

回答

3

使用HttpContext.Current属性在您的WebMethod

6
var myCookie = new HttpCookie("CookieName"); 
myCookie["key"] = "val"; 

HttpContext.Current.Response.Cookies.Add(myCookie); 
1
HttpContext.Current.Response.Cookies.Get("CookieName"); 
1

使用FF:代码:

HttpCookie objHTTPCk = HttpContext.Current.Request.Cookies.Get("Cookie name");