Documentation ¶
Overview ¶
Package expire helps expire user's logged in sessions
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Middleware ¶
Middleware ensures that the user's expiry information is kept up-to-date on each request. Deletes the SessionKey from the session if the user is expired (a.ExpireAfter duration since SessionLastAction). This middleware conflicts with use of the Remember module, don't enable both at the same time.
func RefreshExpiry ¶
func RefreshExpiry(w http.ResponseWriter, r *http.Request)
RefreshExpiry updates the last action for the user, so he doesn't become expired.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.