public void Append(string key, string value, CookieOptions options)
        {
            // context.Response.Headers["Set-Cookie"]
            //context.Response.Cookies.Delete(key);
            context.Response.Cookies.Append(key, value, options);
            HttpCookieWrapper cookie = options;

            cookie.Name  = key;
            cookie.Value = value;
            dic.Add(cookie.Name, cookie);
        }
 public void Add(HttpCookieWrapper cookie, bool appendToReponse)
 {
     if (!appendToReponse)
     {
         dic.Add(cookie.Name, cookie);
         return;
     }
     if (context != null && cookie != null)
     {
         Append(cookie.Name, cookie.Value, cookie.ToCookieOptions());
     }
 }
 public void Add(HttpCookieWrapper cookie)
 {
     Add(cookie, true);
 }