gorilla / sessions

Package gorilla/sessions provides cookie and filesystem sessions and infrastructure for custom session backends.
https://gorilla.github.io
BSD 3-Clause "New" or "Revised" License
2.93k stars 371 forks source link

[FEATURE] <Adding support for Partitioned attribute for 3rd Party Cookie deprecation> #272

Closed kashishbehl closed 6 months ago

kashishbehl commented 7 months ago

Is there an existing feature request for this?

Is your feature request related to a problem? Please describe.

Chrome will be disabling 3rd Party Cookie support by the end of June 2024. As a solution chrome has added support for creating cookies with independent partitioned state called CHIPS. This will be achieved by adding Partitioned attribute in cookies to allow cookie to be partitioned to the website where it is set.

Describe the solution that you would like.

We need to add support for a new cookie attirbute named Partitioned.

Describe alternatives you have considered.

No response

Anything else?

No response

kramesh2005new commented 6 months ago

Getting following issue while get this package and building because of this implementation

Screenshot from 2024-05-08 14-53-57

broody commented 5 months ago

Getting following issue while get this package and building because of this implementation

Screenshot from 2024-05-08 14-53-57

Running into the same issue.

Edit: Looks like it'll be available in go 1.23 https://github.com/golang/go/issues/62490#issuecomment-2127685955

jaitaiwan commented 5 months ago

Thanks for bringing this to our attention. I'll have to take a look at how to fix this.

jaitaiwan commented 2 months ago

Support added in v1.4.0