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 91e60cb
Browse filesBrowse the repository at this point in the historyBrowse files
$.cookie('the_cookie', {raw: true}); // => 'the_value' NOT URL decoded
28
29
$.cookie('not_existing'); // => null
29
30
30
31
Delete cookie by passing null as value:
@@ -35,6 +36,8 @@ Delete cookie by passing null as value:
35
36
36
37
## Options
37
38
39
+
Options can be set globally by setting properties of the `$.cookie.defaults` object or individually for each call to `$.cookie()` by passing a plain object to the options argument. Per-call options override the ones set by `$.cookie.defaults`.
40
+
38
41
expires: 365
39
42
40
43
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.
0 commit comments