Properly overwrite session cookie when logging out
This commit is contained in:
parent
a6b6c259ce
commit
967e918df1
@ -176,7 +176,7 @@ func LogoutUser(app *app.App, w http.ResponseWriter, r *http.Request) {
|
|||||||
|
|
||||||
// Delete cookie
|
// Delete cookie
|
||||||
cookie = &http.Cookie{
|
cookie = &http.Cookie{
|
||||||
Name: "",
|
Name: "session",
|
||||||
Value: "",
|
Value: "",
|
||||||
Path: "/",
|
Path: "/",
|
||||||
MaxAge: -1,
|
MaxAge: -1,
|
||||||
|
Loading…
Reference in New Issue
Block a user