Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-8351983 HttpCookie Parser Incorrectly Handles Cookies with Expires Attribute
  3. JDK-8360027

Release Note: HttpCookie Handles Conflicting Expires and Max-Age Attributes

XMLWordPrintable

    • Icon: Sub-task Sub-task
    • Resolution: Unresolved
    • Icon: P4 P4
    • tbd
    • 26
    • core-libs

      `java.net.HttpCookie` has been updated to correctly handle cookies with both `Expires` and `Max-Age` attributes. RFC 6265 specifies that the `Max-Age` attribute should take precedence over the `Expires` attribute if both are present in the same cookie. This behavior change is reflected in the `HttpCookie.getMaxAge` method.

            michaelm Michael McMahon
            michaelm Michael McMahon
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated: