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 575a419
Browse filesBrowse the repository at this point in the historyBrowse files
Copy file name to clipboardExpand all lines: README.rdoc
+6-9Lines changed: 6 additions & 9 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -35,17 +35,13 @@ Delete cookie by passing null as value:
35
35
36
36
expires: 365
37
37
38
-
Define lifetime of the cookie. Value can be a +Number+ (which will be interpreted as days from creation) or a +Date+ object.
39
-
If omitted, the cookie is a session cookie.
38
+
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
39
41
40
path: '/'
42
41
43
-
Define the path where cookie is valid. Default: path of page where the cookie was created.
44
-
<strong>By default the path of the cookie is the path of the page where the cookie was created (standard browser behavior).</strong>
42
+
Default: path of page where the cookie was created.
45
43
46
-
If you want to make it available for instance across the entire page use <code>path: '/'</code>.
47
-
48
-
If you want to delete a cookie with a particular path, you need to include that path in the call.
44
+
Define the path where cookie is valid. <b>By default the path of the cookie is the path of the page where the cookie was created (standard browser behavior).</b> If you want to make it available for instance across the entire page use <code>path: '/'</code>. If you want to delete a cookie with a particular path, you need to include that path in the call.
49
45
50
46
domain: 'example.com'
51
47
@@ -57,8 +53,9 @@ Default: +false+. If true, the cookie transmission requires a secure protocol (h
57
53
58
54
raw: true
59
55
60
-
Default: +false+. By default the cookie is encoded/decoded when creating/reading, using +encodeURIComponent+/+decodeURIComponent+.
61
-
Turn off by setting <code>raw: true</code>.
56
+
Default: +false+.
57
+
58
+
By default the cookie is encoded/decoded when creating/reading, using +encodeURIComponent+/+decodeURIComponent+. Turn off by setting <code>raw: true</code>.
0 commit comments