Skip to content

Update CookieContainer.xml #11327

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 2 commits into from
May 21, 2025
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions xml/System.Net/CookieContainer.xml
Original file line number Diff line number Diff line change
Expand Up @@ -476,7 +476,7 @@
## Remarks
If you add a <xref:System.Net.Cookie> instance for just one specific host, do not set the <xref:System.Net.Cookie.Domain%2A> property of the <xref:System.Net.Cookie> instance. This is set automatically, based on the URI.

If your URI corresponds to your local domain and sends to all the hosts on the local domain, set the <xref:System.Net.Cookie><xref:System.Net.Cookie.Domain%2A> property equal to ".local". Otherwise, make sure it matches the host name used in the URI.
If your URI corresponds to your local domain and sends to all the hosts on the local domain, set the <xref:System.Net.Cookie.Domain?displayProperty=nameWithType> property equal to ".local". Otherwise, make sure it matches the host name used in the URI.

If the <xref:System.Net.Cookie.Version%2A> property of a <xref:System.Net.Cookie> is Netscape, the <xref:System.Net.Cookie.Path%2A> property of the <xref:System.Net.Cookie>, if not set explicitly, is derived from the URI and is the complete path from the URI, including the page name.

Expand Down Expand Up @@ -553,7 +553,7 @@
## Remarks
If you add a <xref:System.Net.Cookie> instance for just one specific host, do not set the <xref:System.Net.Cookie.Domain%2A> property of the <xref:System.Net.Cookie> instance. This is set automatically, based on the URI.

If your URI corresponds to your local domain and sends to all the hosts on the local domain, set the <xref:System.Net.Cookie><xref:System.Net.Cookie.Domain%2A> property equal to ".local". Otherwise, make sure it matches the host name used in the URI.
If your URI corresponds to your local domain and sends to all the hosts on the local domain, set the <xref:System.Net.Cookie> <xref:System.Net.Cookie.Domain%2A> property equal to ".local". Otherwise, make sure it matches the host name used in the URI.

If <xref:System.Net.CookieContainer.Count%2A> equals <xref:System.Net.CookieContainer.Capacity%2A>, one or more <xref:System.Net.Cookie> instances is removed from the container before adding the `cookie` parameter. Enough <xref:System.Net.Cookie> instances are removed to bring <xref:System.Net.CookieContainer.Count%2A> below <xref:System.Net.CookieContainer.Capacity%2A> as follows: if there are expired instances in scope they are cleaned up. If not, then the least recently used <xref:System.Net.CookieCollection> is found and removed from the container.

Expand Down