Exemple #1
0
func logout(s sessions.Session, w http.ResponseWriter, r *http.Request) {
	next := extractPath(r.URL.Query().Get(keyNextPage))
	s.Delete(KeyToken)
	http.Redirect(w, r, next, http.StatusFound)
}