Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 1 addition & 2 deletions 6-data-storage/01-cookie/article.md
Original file line number Diff line number Diff line change
Expand Up @@ -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:

Expand Down Expand Up @@ -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).
Expand Down