Documentation ¶
Overview ¶
Package sessions is used to store session information for a web server
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type CookieStore ¶
type CookieStore struct {
// contains filtered or unexported fields
}
CookieStore stores and retrieves authenticated data from a clients cookies
func NewCookieStore ¶
func NewCookieStore(encKey []byte, opts ...optFunc) (*CookieStore, error)
NewCookieStore creates a new CookieStore and initialises it. The options optFunc's are to set non-default values on the cookie.
func (*CookieStore) Get ¶
func (c *CookieStore) Get(r *http.Request) []byte
Get retrieves authenticated data from the cookie
func (*CookieStore) Set ¶
func (c *CookieStore) Set(w http.ResponseWriter, data []byte)
Set stores authenticated data in a clients cookies
Click to show internal directories.
Click to hide internal directories.