Documentation
¶
Overview ¶
`sess` is a package that makes dealing with sessions in an `echo` application much simplier.
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var SessionName = "_reverb_session"
SessionName is the name of the session cookie that is set. This defaults to "_reverb_session".
View Source
var Store = sessions.NewCookieStore([]byte(os.Getenv("SESSION_SECRET")))
Store is the `github.com/gorilla/sessions` store used to back the session. It defaults to use a cookie store and the ENV variable `SESSION_SECRET`.
Functions ¶
This section is empty.
Types ¶
type Session ¶
func Get ¶
func Get(r *http.Request, w http.ResponseWriter) *Session
Get a session using a request and response.
func (*Session) Delete ¶
func (s *Session) Delete(name interface{})
Delete a value from the current session.
Click to show internal directories.
Click to hide internal directories.