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 b794fe7
Browse filesBrowse the repository at this point in the historyBrowse files
Copy file name to clipboardExpand all lines: README.rdoc
+7-5Lines changed: 7 additions & 5 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -36,12 +36,14 @@ Delete cookie by passing null as value:
36
36
expires: 365
37
37
38
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 becomes a session cookie.
39
+
If omitted, the cookie is a session cookie.
40
40
41
-
path: '/',
41
+
path: '/'
42
42
43
-
Default: path of page where the cookie was created. 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).*
44
-
If you want to make it available for instance across the entire page use +path: '/'+.
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>
45
+
46
+
If you want to make it available for instance across the entire page use <code>path: '/'</code>.
45
47
46
48
If you want to delete a cookie with a particular path, you need to include that path in the call.
47
49
@@ -56,7 +58,7 @@ Default: +false+. If true, the cookie transmission requires a secure protocol (h
56
58
raw: true
57
59
58
60
Default: +false+. By default the cookie is encoded/decoded when creating/reading, using +encodeURIComponent+/+decodeURIComponent+.
0 commit comments