diff --git a/routes.go b/routes.go index c8c089c..94253a8 100644 --- a/routes.go +++ b/routes.go @@ -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) }