Skip to content

Commit

Permalink
Update Proposal: add cookies.removeAll() method.md
Browse files Browse the repository at this point in the history
Update language in objective.
  • Loading branch information
aselya authored Oct 2, 2024
1 parent 5682b4c commit bf51fe9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion proposals/Proposal: add cookies.removeAll() method.md
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ The introduction of additional cookie attributes since the creation of the `cook

### Objective

This new API addresses two workflows which require developers to take additional steps to ensure that cookies are deleted correctly because the required parameters for `cookies.remove()` can indiate multiple cookies:
This new API addresses two workflows which require developers to take additional steps to ensure that cookies are deleted correctly because the required parameters for `cookies.remove()` can match multiple cookies but will only delete one cookie:
##### Removal of cookies with the same url and name combination but different partitionKey, path or host-only values:
To remove all the cookies with the same `url` and `name` a developer must first call `cookies.getAll()` to get all of the cookies associated with the values. Then use the results of that call to make individual calls to `cookies.remove()` to delete each cookie.

Expand Down

0 comments on commit bf51fe9

Please sign in to comment.