Reputation: 1085
HttpCookie class documentation:
There are 3 HTTP cookie specifications:
Netscape draft
RFC 2109 - http://www.ietf.org/rfc/rfc2109.txt
RFC 2965 - http://www.ietf.org/rfc/rfc2965.txt
What about RFC 6265? Is there a class similar to HttpCookie that supports this newest specification as well?
Python has a simular Cookie class which follows RFC 2109 which is even worse. By the way, how can you support 3 cookie specifications if some of them explicitly forbid behavior of a previous one? I am referring to the comma and semi-colon separated lists.
Upvotes: 3
Views: 605
Reputation: 2021
There is an open issue related to RFC 6265: https://java.net/jira/browse/SERVLET_SPEC-37
You could use https://github.com/js-cookie/java-cookie as an alternative.
Upvotes: 2