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
// Returns true when cookie was found, false when no cookie was found...
44
-
$.removeCookie('the_cookie');
55
+
```javascript
56
+
// Returns true when cookie was found, false when no cookie was found...
57
+
$.removeCookie('the_cookie');
45
58
46
-
// Same path as when the cookie was written...
47
-
$.removeCookie('the_cookie', { path: '/' });
59
+
// Same path as when the cookie was written...
60
+
$.removeCookie('the_cookie', { path:'/' });
61
+
```
48
62
49
63
*Note: when deleting a cookie, you must pass the exact same path, domain and secure options that were used to set the cookie, unless you're relying on the default options that is.*
50
64
@@ -54,13 +68,17 @@ Delete cookie:
54
68
55
69
By default the cookie value is encoded/decoded when writing/reading, using `encodeURIComponent`/`decodeURIComponent`. Bypass this by setting raw to true:
56
70
57
-
$.cookie.raw = true;
71
+
```javascript
72
+
$.cookie.raw=true;
73
+
```
58
74
59
75
### json
60
76
61
77
Turn on automatic storage of JSON objects passed as the cookie value. Assumes `JSON.stringify` and `JSON.parse`:
0 commit comments