Versions in this module Expand all Collapse all v1 v1.1.0 Jul 10, 2026 Changes in this version + func SetMaxSessions(n int) type Options + MaxSessions int v1.0.0 May 26, 2026 Changes in this version + func Add(sess *Session, w http.ResponseWriter) + func Close() + func Init(o Options) + func Len() int + func Reinit() + func Remove(sess *Session, w http.ResponseWriter) + type Options struct + AllowHTTP bool + CleanInterval time.Duration + CookieMaxAge time.Duration + CookieName string + CookiePath string + type SessOptions struct + Attrs map[string]interface{} + Timeout time.Duration + type Session struct + func Get(r *http.Request) *Session + func NewSession(o ...SessOptions) *Session + func (s *Session) Accessed() time.Time + func (s *Session) Attr(name string) interface{} + func (s *Session) Attrs() map[string]interface{} + func (s *Session) Created() time.Time + func (s *Session) ID() string + func (s *Session) SetAttr(name string, value interface{}) + func (s *Session) Timeout() time.Duration