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 5719ac2 commit 02ef569
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ public NewCookie deleteBlogPostRatingCookie(String id) {
.secure(true)
.httpOnly(true)
.sameSite(NewCookie.SameSite.STRICT)
.maxAge(Integer.MAX_VALUE)
.maxAge(-1)
.expiry(Date.from(Instant.now().minusSeconds(1)))
.value("goodbye")
.path("/")
Expand Down

0 comments on commit 02ef569

Please sign in to comment.