Documentation
¶
Overview ¶
Package timeoutable takes care of verifying whether a user session has already expired or not. When a session expires after the configured time, the user will be asked for credentials again, it means, they will be redirected to the sign in page.
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 ¶
Click to show internal directories.
Click to hide internal directories.