This commit is contained in:
lbenedar
2026-03-06 14:44:08 +03:00
parent 894d152aae
commit 94345eff97
6 changed files with 42 additions and 17 deletions

View File

@@ -219,7 +219,7 @@ func (app *application) userLogoutPost(w http.ResponseWriter, r *http.Request) {
app.serverError(w, err)
return
}
app.sessionManager.Remove(r.Context(), "authenticatedUserId")
app.sessionManager.Remove(r.Context(), "authenticatedUserID")
app.sessionManager.Put(r.Context(), "flash", "You've been logged out succefully!")
http.Redirect(w, r, "/", http.StatusSeeOther)