We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 7087b4d commit 7910f5bCopy full SHA for 7910f5b
sessions.go
@@ -24,8 +24,9 @@ const flashesKey = "_flash"
24
type Options struct {
25
Path string
26
Domain string
27
- // MaxAge=0 means no 'Max-Age' attribute specified.
28
- // MaxAge<0 means delete cookie now, equivalently 'Max-Age: 0'.
+ // MaxAge=0 means no Max-Age attribute specified and the cookie will be
+ // deleted after the browser session ends.
29
+ // MaxAge<0 means delete cookie immediately.
30
// MaxAge>0 means Max-Age attribute present and given in seconds.
31
MaxAge int
32
Secure bool
0 commit comments