cookie max age

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

View file

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