Skip to content

Commit 96c44da

Browse files
Add a note in the README for cookies that expires in less than a day
Closes js-cookiegh-225. Closes js-cookiegh-224.
1 parent 960a75e commit 96c44da

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

README.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -152,6 +152,8 @@ Cookie attributes defaults can be set globally by setting properties of the `Coo
152152

153153
Define when the cookie will be removed. Value can be a [`Number`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Number) which will be interpreted as days from time of creation or a [`Date`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Date) instance. If omitted, the cookie becomes a session cookie.
154154

155+
To create a cookie that expires in less than a day, you can check the [FAQ on the Wiki](https://github.com/js-cookie/js-cookie/wiki/Frequently-Asked-Questions#expire-cookies-in-less-than-a-day).
156+
155157
**Default:** Cookie is removed when the user closes the browser.
156158

157159
**Examples:**

0 commit comments

Comments
 (0)