Commit 8c1e4b3
docs: update res.clearCookie documentation for clarity and accuracy (#2000)
Improve the message by expanding on how the cookie is cleared, and
include a note about the deprecation of the `max-age` and `expires`
options: in Express 4 they are still respected (not ignored), whereas in
Express 5 they are ignored.
ref: expressjs/express#5792
ref: expressjs/express#5640
ref: expressjs/express#5672
closes: #1146
Note: We need to manage changes more effectively. Whenever there are
changes, and once they have been released, a PR should be opened here to
update the documentation. Improving these processes will help us keep
our documentation better maintained.
Signed-off-by: Sebastian Beltran <[email protected]>
Co-authored-by: ShubhamOulkar <[email protected]>1 parent 10929d3 commit 8c1e4b3
2 files changed
+17
-4
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | 2 | | |
3 | | - | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
4 | 12 | | |
5 | 13 | | |
6 | 14 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | 2 | | |
3 | | - | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
4 | 10 | | |
5 | 11 | | |
6 | 12 | | |
7 | | - | |
8 | | - | |
| 13 | + | |
9 | 14 | | |
10 | 15 | | |
11 | 16 | | |
| |||
0 commit comments