From b2f526bf940f3fdeee3da771eb4095f4b5f8e38a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Johannes=20M=C3=BCller?= Date: Tue, 12 Nov 2024 16:03:55 +0100 Subject: [PATCH] Update src/http/cookie.cr --- src/http/cookie.cr | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/src/http/cookie.cr b/src/http/cookie.cr index b2c0932725ce..521966e44816 100644 --- a/src/http/cookie.cr +++ b/src/http/cookie.cr @@ -192,10 +192,8 @@ module HTTP end end - # tell the browser to delete the cookie. - # Set its value to an empty string - # and set its expiration time to the past - # Browsers delete cookies that have expired. + # Destroys the cookie. + # This is done by causing the cookie to expire. Also clears its value. def destroy self.value = "" self.expires = Time::UNIX_EPOCH