Skip to content

Commit 55bb3dc

Browse files
committed
Update max age of securecookie codecs when setting cookie store options
1 parent bf7931f commit 55bb3dc

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

cookie/cookie.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,4 +28,5 @@ type store struct {
2828

2929
func (c *store) Options(options sessions.Options) {
3030
c.CookieStore.Options = options.ToGorillaOptions()
31+
c.CookieStore.MaxAge(options.MaxAge) // Set the maxAge for securecookie codecs
3132
}

0 commit comments

Comments
 (0)