string cookieName = "hxad" + strWebid + strHostNameUrl + "hxad";
             string strReload = Common.GetCookie(cookieName.Trim());
             Common.WriteCookie(cookieName.Trim(), cookieName, Common.CookieReload);common类GetCookie方法如下:
       public static string GetCookie(string strName)
        {
            if (HttpContext.Current.Request.Cookies != null && HttpContext.Current.Request.Cookies[strName] != null)
            {
                return HttpContext.Current.Request.Cookies[strName].Value.ToString();
            }            return "";
        }
common类WriteCookie方法如下:
         public static void WriteCookie(string strName, string strValue, double expires)
        {
            HttpCookie cookie = HttpContext.Current.Request.Cookies[strName];
            if (cookie == null)
            {
                cookie = new HttpCookie(strName);
            }
            cookie.Value = strValue;
            cookie.Expires = DateTime.Now.AddMinutes(expires);
            HttpContext.Current.Response.AppendCookie(cookie);        }