cookie max age

This commit is contained in:
Ryan Stafford 2023-07-02 23:10:33 -04:00
parent c1bdf44a73
commit b4868d9e62

View file

@ -463,6 +463,7 @@ func setCookie(w http.ResponseWriter, host string, name string, value string) {
cookie := http.Cookie{
Name: name,
Value: value,
MaxAge: 86400 * 30,
Path: "/" + host,
}
http.SetCookie(w, &cookie)