Documentation ¶
Index ¶
- type SessionManager
- func (s *SessionManager) Clear(rw http.ResponseWriter, req *http.Request)
- func (s *SessionManager) Get(rw http.ResponseWriter, req *http.Request) map[string]interface{}
- func (s *SessionManager) Len() int64
- func (s *SessionManager) Set(session map[string]interface{}, rw http.ResponseWriter, req *http.Request)
- func (s *SessionManager) SetEX(session map[string]interface{}, rw http.ResponseWriter, req *http.Request, ...)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type SessionManager ¶
type SessionManager struct { CookieName string CookieDomain string // contains filtered or unexported fields }
func (*SessionManager) Clear ¶
func (s *SessionManager) Clear(rw http.ResponseWriter, req *http.Request)
func (*SessionManager) Get ¶
func (s *SessionManager) Get(rw http.ResponseWriter, req *http.Request) map[string]interface{}
func (*SessionManager) Len ¶
func (s *SessionManager) Len() int64
func (*SessionManager) Set ¶
func (s *SessionManager) Set(session map[string]interface{}, rw http.ResponseWriter, req *http.Request)
func (*SessionManager) SetEX ¶
func (s *SessionManager) SetEX(session map[string]interface{}, rw http.ResponseWriter, req *http.Request, exprie int)
设置session和cookie
Click to show internal directories.
Click to hide internal directories.