Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Manager ¶
type Manager struct {
// contains filtered or unexported fields
}
Manager is the global session manager.
var GlobalSessions *Manager
GlobalSessions manager
func NewManager ¶
NewManager instantiate a new session manager.
func (*Manager) GC ¶
func (manager *Manager) GC()
GC collects expired sessions, should be called and only called
func (*Manager) SessionDestroy ¶
func (manager *Manager) SessionDestroy(w http.ResponseWriter, r *http.Request)
SessionDestroy destroy sessions
func (*Manager) SessionStart ¶
SessionStart start the session
Click to show internal directories.
Click to hide internal directories.