func logout(s session.Store, w http.ResponseWriter, r *http.Request) { next := extractPath(r.URL.Query().Get(keyNextPage)) s.Delete(keyToken) http.Redirect(w, r, next, codeRedirect) }
func logout(ctx *macaron.Context, s session.Store) { next := extractPath(ctx.Query(KEY_NEXT_PAGE)) s.Delete(KEY_TOKEN) ctx.Redirect(next) }
func (u *User) Logout(sess session.Store) { sess.Delete("uid") }