Skip to content

Cookies and RFC 6265 #20

@LiberalArtist

Description

@LiberalArtist

The web-server/http/cookie and web-server/http/id-cookie libraries (and, to a lesser extent, web-server/http/cookie-parse) are implemented using net/cookie, which carries a big scary warning about being deprecated in favor of net/cookies from the net-cookies package, which implements RFC 6265.

I'm not sure what the web server should do about this. For my own purposes, I've more or less implemented the API of the web-server cookie libraries using net/cookies. I'm happy to clean up and share that code, but I'm not sure if it should be a package or a contribution to the web server and, if the later, what the backwards-compatibility considerations are.

If the conclusion is that the web server should continue to provide the current libraries based on the deprecated net/cookie, it seems like the web server documentation should also note the limitations of net/cookie in appropriate places. It seems particularly relevant to web-server/http/id-cookie, as users probably want features like HttpOnly.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions