Cookie path handling now conforms to RFC 6265

Path-handling algorithms defined in RFC 6265 were implemented for the Cookie and CookieContainer classes.

Version introduced

5.0

Change description

  • The Path property is no longer required to be a prefix of the request path.
  • The calculation of the default value of Path and path-matching algorithms were implemented as defined in section 5.1.4 of RFC 6265.

In most cases, you won't need to take any action. However, if your code was dependent on Path validation, you'll need to implement required validation in your code. If your code was dependent on default value calculation for Path, consider supplying the Path value manually instead of using the default value.

Affected APIs