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
*IMPORTANT! when deleting a cookie, you must pass the exact same path, domain and secure attributes that were used to set the cookie, unless you're relying on the [default attributes](#cookie-attributes).*
@@ -137,7 +137,7 @@ Cookie attributes defaults can be set globally by setting properties of the `Coo
137
137
138
138
Define when the cookie will be removed. Value can be a `Number` which will be interpreted as days from time of creation or a `Date` instance. If omitted, the cookie becomes a session cookie.
139
139
140
-
**Browser default:** Cookie is removed when the user closes the browser.
140
+
**Default:** Cookie is removed when the user closes the browser.
141
141
142
142
**Examples:**
143
143
@@ -151,14 +151,14 @@ Cookies.remove('name');
151
151
152
152
Define the path where the cookie is available.
153
153
154
-
**Browser default:**Path of the page where the cookie was created
154
+
**Default:**`/`
155
155
156
156
**Examples:**
157
157
158
158
```javascript
159
-
Cookies.set('name', 'value', { path:'/' });
159
+
Cookies.set('name', 'value', { path:'/foo' });
160
160
Cookies.get('name'); // => 'value'
161
-
Cookies.remove('name', { path:'/' });
161
+
Cookies.remove('name', { path:'/foo' });
162
162
```
163
163
164
164
**Note regarding Internet Explorer:**
@@ -173,7 +173,7 @@ This means one cannot set a path using `path: window.location.pathname` in case
173
173
174
174
Define the domain where the cookie is available
175
175
176
-
**Browser default:** Domain of the page where the cookie was created
176
+
**Default:** Domain of the page where the cookie was created
177
177
178
178
**Examples:**
179
179
@@ -186,7 +186,7 @@ Cookies.get('name'); // => undefined (need to read at 'sub.domain.com')
186
186
187
187
A `Boolean` indicating if the cookie transmission requires a secure protocol (https)
188
188
189
-
**Browser default:** No secure protocol requirement
0 commit comments