Skip to content

Commit 8c78e79

Browse files
authored
Update cookie validity update.md
1 parent 1ba3849 commit 8c78e79

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/connections/sources/catalog/libraries/website/javascript/cookie validity update.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ Here is the full list of available parameters with their default values:
2525
| Parameter | Description | Default value |
2626
| --- | --- | --- |
2727
| `domain` | The domain to set the cookie to. This must match the domain of the JavaScript origin. If an Analytics.js cookie already exists at the top-level domain, Segment carries the same cookie value to any subdomains, despite `domain` configuration. | Top-level domain |
28-
| `maxage` | The maximum amount of time in seconds before the cookie expires. Browsers may clear cookies before this elapses. | 1 year |
28+
| `maxage` | The maximum amount of time in days before the cookie expires. Browsers may clear cookies before this elapses. | 1 year |
2929
| `path` | The path the cookie is valid for. | `"/"` |
3030
| `sameSite` | This prevents the browser from sending the cookie along with cross-site requests. | `Lax` |
3131
| `secure` | This determines whether cookies can only be transmitted over secure protocols such as https. | `false` |
@@ -35,7 +35,7 @@ Example:
3535
analytics.load('writeKey', {
3636
cookie: {
3737
domain: 'sub.site.example',
38-
maxage: 604800, // 7 days in seconds
38+
maxage: 7, 7 days
3939
path: '/',
4040
sameSite: 'Lax',
4141
secure: true

0 commit comments

Comments
 (0)