Skip to content

Commit

Permalink
add a description of config.storage.domain (#272)
Browse files Browse the repository at this point in the history
Co-authored-by: Yuu Ohmura <yuu.ohmura@treasure-data.com>
  • Loading branch information
o-mura and Yuu Ohmura committed Apr 11, 2024
1 parent ede36c0 commit 1c294a2
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -319,6 +319,10 @@ If the database does not exist and you have permissions, it will be created for
* **config.storage.name** : String (optional) - cookie name. Default: `_td`
* **config.storage.expires** : Number (optional) - cookie expiration in seconds. When 0 it will expire with the session. Default: `63072000` (2 years)
* **config.storage.domain** : String (optional) - cookie domain. Default: result of `document.location.hostname`
> :warning: NOTE: If **config.storage.domain** would be not set, td-js-sdk may create cookies against multiple domains.
> For example, suppose you have td-js-sdk located at foo.bar.com.
> If **config.storage.domain** is not set, td-js-sdk will create two cookies for foo.bar.com and bar.com.
> In other words, if you don't want cookies created for higher level domains, you need to set domain parameter to the specific domain.
**Server Side Cookie:**
* **config.useServerSideCookie** : Boolean (optional) - enables/disable using ServerSide Cookie. Default: `false`
Expand Down

0 comments on commit 1c294a2

Please sign in to comment.