Skip to content

Commit

Permalink
Water down the note on set() params
Browse files Browse the repository at this point in the history
  • Loading branch information
hamishwillee committed Feb 25, 2025
1 parent 892d9f2 commit 22e88d4
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions files/en-us/web/api/cookiestore/set/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -49,9 +49,8 @@ Or
- `value`
- : A string with the value of the cookie.

> [!WARNING]
> Note while you can set any of the options and these will be used by browsers internally, but some browsers will only return `name` and `value` from {{domxref("CookieStore.get()")}} and {{domxref("CookieStore.getAll()")}}.
> What this means is that if you want to use these properties for matching a particular cookie later, for example in {{domxref("CookieStore.delete()")}}, you will need to store the information for later use on those browsers.
> [!NOTE]
> While the values can be set here and will be used internally, some browsers will only return `name` and `value` options from {{domxref("CookieStore.get()")}} and {{domxref("CookieStore.getAll()")}}.
### Return value

Expand Down

0 comments on commit 22e88d4

Please sign in to comment.