diff --git a/net/ghttp/ghttp_server_cookie.go b/net/ghttp/ghttp_server_cookie.go index 47fbfb918..6647e9d83 100644 --- a/net/ghttp/ghttp_server_cookie.go +++ b/net/ghttp/ghttp_server_cookie.go @@ -160,14 +160,14 @@ func (c *Cookie) Remove(key string) { "", c.request.Server.GetCookieDomain(), c.request.Server.GetCookiePath(), - -86400, + -24*time.Hour, ) } // RemoveCookie deletes specified key and its value from cookie using given domain and path. // It actually tells the http client that the cookie is expired, do not send it to server next time. func (c *Cookie) RemoveCookie(key, domain, path string) { - c.SetCookie(key, "", domain, path, -86400) + c.SetCookie(key, "", domain, path, -24*time.Hour) } // Flush outputs the cookie items to client.