internal void AddCookie(HttpCookie cookie, bool append) { if (cookie == null) throw new ArgumentNullException("cookie"); _allKeys = null; if (append) BaseAdd(cookie.Name, cookie); else BaseSet(cookie.Name, cookie); }
public HttpCookie Get(string name) { var result = (HttpCookie)BaseGet(name); if (result == null) { result = new HttpCookie(name); AddCookie(result, true); } return result; }
public void Set(HttpCookie cookie) { AddCookie(cookie, false); }
public void Add(HttpCookie cookie) { AddCookie(cookie, true); }