options.go 478 B

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