예제 #1
0
        //
        //  Public APIs to add / remove
        //


        /// <devdoc>
        ///    <para>
        ///       Adds a cookie to the collection.
        ///    </para>
        /// </devdoc>
        public void Add(HttpCookie cookie)
        {
            if (_response != null)
            {
                _response.BeforeCookieCollectionChange();
            }

            AddCookie(cookie, true);

            if (_response != null)
            {
                _response.OnCookieAdd(cookie);
            }
        }