Documentation ¶
Index ¶
- type Manager
- func (m *Manager) Delete(sessionID string, key interface{})
- func (m *Manager) End(w http.ResponseWriter, r *http.Request)
- func (m *Manager) Extension(w http.ResponseWriter, r *http.Request) string
- func (m *Manager) GC()
- func (m *Manager) Get(sessionID string, key interface{}) (interface{}, bool)
- func (m *Manager) Set(sessionID string, key, value interface{})
- func (m *Manager) Start(w http.ResponseWriter, r *http.Request) string
- type Session
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Manager ¶
type Manager struct {
// contains filtered or unexported fields
}
func NewSessionManager ¶
NewSessionManager return a session manager
func (*Manager) End ¶
func (m *Manager) End(w http.ResponseWriter, r *http.Request)
End end session
delete sessionID from cookie and map
Click to show internal directories.
Click to hide internal directories.