update cookie settings

This commit is contained in:
Wim Brand
2020-02-05 11:56:08 +01:00
parent 650c7ede6c
commit ea6d8bf6c8
3 changed files with 10 additions and 0 deletions

View File

@@ -76,6 +76,13 @@ func (wc *WebController) newTemplateData(w http.ResponseWriter, r *http.Request)
Expires: time.Unix(0, 0),
Domain: wc.sessionCookieDomain,
})
http.SetCookie(w, &http.Cookie{
Name: "pd_auth_key",
Value: "",
Path: "/",
Expires: time.Unix(0, 0),
Domain: ".pixeldrain.com",
})
}
return t
}