From 692f73ff0474b959ccbe2ff9dda77f241c5d1733 Mon Sep 17 00:00:00 2001 From: Osvaldo Dias dos Santos Date: Wed, 8 Mar 2023 22:10:58 +0100 Subject: [PATCH] Update "Cookies, document.cookie" article --- 6-data-storage/01-cookie/article.md | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/6-data-storage/01-cookie/article.md b/6-data-storage/01-cookie/article.md index 2667b6948..01c0e1fee 100644 --- a/6-data-storage/01-cookie/article.md +++ b/6-data-storage/01-cookie/article.md @@ -156,7 +156,7 @@ If we set `expires` to a date in the past, the cookie is deleted. - **`max-age=3600`** -Is an alternative to `expires` and specifies the cookie's expiration in seconds from the current moment. +It's an alternative to `expires` and specifies the cookie's expiration in seconds from the current moment. If set to zero or a negative value, the cookie is deleted: @@ -282,7 +282,6 @@ Here's a small set of functions to work with cookies, more convenient than a man There exist many cookie libraries for that, so these are for demo purposes. Fully working though. - ### getCookie(name) The shortest way to access a cookie is to use a [regular expression](info:regular-expressions).