gin-contrib / sessions

Gin middleware for session management
MIT License
1.43k stars 194 forks source link

How to Use SameSite Options #110

Open yuzujoe opened 4 years ago

yuzujoe commented 4 years ago

(#106) this commit add support same site option confirmed

but my gin project not reflected

my go version

go version go1.13.5 darwin/amd64
Options struct {
    Path   string
    Domain string
    // MaxAge=0 means no 'Max-Age' attribute specified.
    // MaxAge<0 means delete cookie now, equivalently 'Max-Age: 0'.
    // MaxAge>0 means Max-Age attribute present and given in seconds.
    MaxAge   int
    Secure   bool
    HttpOnly bool
}

thanks

yuzujoe commented 4 years ago

sorry this issue no release yet

I don't know how to erase

melekhine commented 4 years ago

Any updates about this? SameSite option is live on Gin v1.6 now.

ghost commented 3 years ago

It's easy enough to enable, take a look at this test file for an example on how to use it:

https://github.com/slayercat/sessions/blob/6eb0fff36d37e18fa3d7dc7c2ca09871146fc3d2/tester/tester_options_samesite_go1.11.go

arzustudent commented 4 months ago

Any updates on this? Why is this still open?