Skip to content

Commit cd97d43

Browse files
committed
updated readme
1 parent d7ec3dc commit cd97d43

1 file changed

Lines changed: 3 additions & 0 deletions

File tree

‎README.md‎

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,7 @@ Create expiring cookie, valid across entire page:
2525
Read cookie:
2626

2727
$.cookie('the_cookie'); // => 'the_value'
28+
$.cookie('the_cookie', {raw: true}); // => 'the_value' NOT URL decoded
2829
$.cookie('not_existing'); // => null
2930

3031
Delete cookie by passing null as value:
@@ -35,6 +36,8 @@ Delete cookie by passing null as value:
3536

3637
## Options
3738

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+
3841
expires: 365
3942

4043
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.

0 commit comments

Comments
 (0)