You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Commit 72e8738
Browse filesBrowse the repository at this point in the historyBrowse files
Copy file name to clipboardExpand all lines: README.md
+5-9Lines changed: 5 additions & 9 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -37,27 +37,23 @@ Delete cookie by passing null as value:
37
37
38
38
expires: 365
39
39
40
-
Define lifetime of the cookie. Value can be a `Number` (which will be interpreted as days from time of creation) or a `Date` object. If omitted, the cookie is a session cookie.
40
+
Define lifetime of the cookie. Value can be a `Number` (which will be interpreted as days from time of creation) or a `Date` object. If omitted, the cookie becomes a session cookie.
41
41
42
42
path: '/'
43
43
44
-
Default: path of page where the cookie was created.
45
-
46
-
Define the path where cookie is valid. *By default the path of the cookie is the path of the page where the cookie was created (standard browser behavior).* If you want to make it available for instance across the entire domain use `path: '/'`.
44
+
Define the path where the cookie is valid. *By default the path of the cookie is the path of the page where the cookie was created (standard browser behavior).* If you want to make it available for instance across the entire domain use `path: '/'`. Default: path of page where the cookie was created.
47
45
48
46
domain: 'example.com'
49
47
50
-
Default: domain of page where the cookie was created.
48
+
Define the domain where the cookie is valid. Default: domain of page where the cookie was created.
51
49
52
50
secure: true
53
51
54
-
Default: `false`. If true, the cookie transmission requires a secure protocol (https).
52
+
If true, the cookie transmission requires a secure protocol (https). Default: `false`.
55
53
56
54
raw: true
57
55
58
-
Default: `false`.
59
-
60
-
By default the cookie is encoded/decoded when creating/reading, using `encodeURIComponent`/`decodeURIComponent`. Turn off by setting `raw: true`.
56
+
By default the cookie is encoded/decoded when creating/reading, using `encodeURIComponent`/`decodeURIComponent`. Turn off by setting `raw: true`. Default: `false`.
0 commit comments