cookie max age

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

View file

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