2012-12-19 73 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");