Skip to content

Commit 72e8738

Browse files
committed
Improving the documentation a bit, mostly by rearranging text.
1 parent e3a844b commit 72e8738

1 file changed

Lines changed: 5 additions & 9 deletions

File tree

‎README.md‎

Lines changed: 5 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -37,27 +37,23 @@ Delete cookie by passing null as value:
3737

3838
expires: 365
3939

40-
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.
40+
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.
4141

4242
path: '/'
4343

44-
Default: path of page where the cookie was created.
45-
46-
Define the path where cookie is valid. *By default the path of the cookie is the path of the page where the cookie was created (standard browser behavior).* If you want to make it available for instance across the entire domain use `path: '/'`.
44+
Define the path where the cookie is valid. *By default the path of the cookie is the path of the page where the cookie was created (standard browser behavior).* If you want to make it available for instance across the entire domain use `path: '/'`. Default: path of page where the cookie was created.
4745

4846
domain: 'example.com'
4947

50-
Default: domain of page where the cookie was created.
48+
Define the domain where the cookie is valid. Default: domain of page where the cookie was created.
5149

5250
secure: true
5351

54-
Default: `false`. If true, the cookie transmission requires a secure protocol (https).
52+
If true, the cookie transmission requires a secure protocol (https). Default: `false`.
5553

5654
raw: true
5755

58-
Default: `false`.
59-
60-
By default the cookie is encoded/decoded when creating/reading, using `encodeURIComponent`/`decodeURIComponent`. Turn off by setting `raw: true`.
56+
By default the cookie is encoded/decoded when creating/reading, using `encodeURIComponent`/`decodeURIComponent`. Turn off by setting `raw: true`. Default: `false`.
6157

6258
## Changelog
6359

0 commit comments

Comments
 (0)