diff --git a/component/src/main/java/com/gdevxy/blog/component/cookie/Cookies.java b/component/src/main/java/com/gdevxy/blog/component/cookie/Cookies.java index c0e3678..cdf4096 100644 --- a/component/src/main/java/com/gdevxy/blog/component/cookie/Cookies.java +++ b/component/src/main/java/com/gdevxy/blog/component/cookie/Cookies.java @@ -40,7 +40,7 @@ public NewCookie deleteBlogPostRatingCookie(String id) { .httpOnly(true) .sameSite(NewCookie.SameSite.STRICT) .maxAge(Integer.MAX_VALUE) - .expiry(Date.from(Instant.now().plusSeconds(Integer.MAX_VALUE))) + .expiry(Date.from(Instant.now().minusSeconds(1))) .value("goodbye") .path("/") .build();