Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

🐛 Expiration of cookie __dd_s after setTrackingConsent('not-granted') call #2923

Open
Alexis2004 opened this issue Aug 6, 2024 · 0 comments
Labels
enhancement New feature or request

Comments

@Alexis2004
Copy link

We are working on integrating RUM Browser Monitoring into our product.

One of our critical requirements is that our product complies with GDPR, particularly regarding Cookie Consent.

Our users can change their consent to accept cookies dynamically, for which we call the setTrackingConsent method from the SDK.

After a user withdraws consent, we delete all cookies set by our application and expect the same behavior from all third-party SDKs we use.

Describe the bug

However, regarding the @browser-sdk/core module, we observe unexpected behavior related to the _dd_s cookie: its expiration date is set 4 hours in the future (regardless of the client's time zone) instead of "now" or "in the past."

This observation was confirmed by examining the source code. The value of the SESSION_TIME_OUT_DELAY constant is precisely 4 hours.

Expected behavior

This behavior is a blocker for us, as the extra cookie will prevent us from passing GDPR compliance certification. We expect that when calling the setTrackingConsent('not-granted') method, the _dd_s cookie will be immediately expired.

@Alexis2004 Alexis2004 added the bug Something isn't working label Aug 6, 2024
@BenoitZugmeyer BenoitZugmeyer added enhancement New feature or request and removed bug Something isn't working labels Aug 6, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants