options.go (478B)
1 // +build !go1.11 2 3 package sessions 4 5 // Options stores configuration for a session or session store. 6 // 7 // Fields are a subset of http.Cookie fields. 8 type Options struct { 9 Path string 10 Domain string 11 // MaxAge=0 means no Max-Age attribute specified and the cookie will be 12 // deleted after the browser session ends. 13 // MaxAge<0 means delete cookie immediately. 14 // MaxAge>0 means Max-Age attribute present and given in seconds. 15 MaxAge int 16 Secure bool 17 HttpOnly bool 18 }