Skip to content

Commit

Permalink
Fixed cookie deletion
Browse files Browse the repository at this point in the history
  • Loading branch information
gdevxy committed Dec 29, 2024
1 parent 46ece61 commit b8fce37
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -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();
Expand Down

0 comments on commit b8fce37

Please sign in to comment.