Remove redundant session cookie clear
This commit is contained in:
parent
cf8aea5115
commit
965139ea18
@ -134,13 +134,5 @@ func LogoutUser(app *app.App, w http.ResponseWriter, r *http.Request) {
|
||||
return
|
||||
}
|
||||
|
||||
// Delete cookie
|
||||
cookie = &http.Cookie{
|
||||
Name: "session",
|
||||
Value: "",
|
||||
Path: "/",
|
||||
MaxAge: -1,
|
||||
}
|
||||
|
||||
http.SetCookie(w, cookie)
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user