Lines Matching refs:cookie

1 # jquery.cookie [![Build Status](https://travis-ci.org/carhartl/jquery-cookie.png?branch=master)](h…
9 <script src="/path/to/jquery.cookie.js"></script>
18 Create session cookie:
20 $.cookie('the_cookie', 'the_value');
22 Create expiring cookie, 7 days from then:
24 $.cookie('the_cookie', 'the_value', { expires: 7 });
26 Create expiring cookie, valid across entire site:
28 $.cookie('the_cookie', 'the_value', { expires: 7, path: '/' });
30 Read cookie:
32 $.cookie('the_cookie'); // => "the_value"
33 $.cookie('not_existing'); // => undefined
37 $.cookie(); // => { "the_cookie": "the_value", "...remaining": "cookies" }
39 Delete cookie:
41 // Returns true when cookie was found, false when no cookie was found...
44 // Same path as when the cookie was written...
47 *Note: when deleting a cookie, you must pass the exact same path, domain and secure options that we…
53 By default the cookie value is encoded/decoded when writing/reading, using `encodeURIComponent`/`de…
55 $.cookie.raw = true;
59 Turn on automatic storage of JSON objects passed as the cookie value. Assumes `JSON.stringify` and …
61 $.cookie.json = true;
65 …t globally by setting properties of the `$.cookie.defaults` object or individually for each call t…
71cookie. Value can be a `Number` which will be interpreted as days from time of creation or a `Date…
77cookie is valid. *By default the path of the cookie is the path of the page where the cookie was c…
81 …ying WinINET InternetGetCookie implementation, IE’s document.cookie will not return a cookie if it…
83 …(FAQ)](http://blogs.msdn.com/b/ieinternals/archive/2009/08/20/wininet-ie-cookie-internals-faq.aspx…
85 …h pathname contains a filename like so: `/check.html` (or at least, such cookie cannot be read cor…
91 Define the domain where the cookie is valid. Default: domain of page where the cookie was created.
97 If true, the cookie transmission requires a secure protocol (https). Default: `false`.
115 - Source hosted at [GitHub](https://github.com/carhartl/jquery-cookie)
116 …s, questions, feature requests on [GitHub Issues](https://github.com/carhartl/jquery-cookie/issues)