🔥 Remove betaEncodeCookieOptions and always encode cookie options#4195
Merged
thomas-lebeau merged 2 commits intov7from Feb 17, 2026
Merged
🔥 Remove betaEncodeCookieOptions and always encode cookie options#4195thomas-lebeau merged 2 commits intov7from
thomas-lebeau merged 2 commits intov7from
Conversation
Bundles Sizes Evolution
🚀 CPU Performance
🧠 Memory Performance
|
|
✅ Tests 🎉 All green!❄️ No new flaky tests detected 🎯 Code Coverage (details) 🔗 Commit SHA: 1ba1e48 | Docs | Datadog PR Page | Was this helpful? Give us feedback! |
BenoitZugmeyer
approved these changes
Feb 17, 2026
5 tasks
mormubis
approved these changes
Feb 17, 2026
Base automatically changed from
thomas.lebeau/v7-session-manager-from-scratch-clean
to
v7
February 17, 2026 11:55
- Remove the `betaEncodeCookieOptions` init configuration option - Make cookie option encoding the default behavior (always-on) - Simplify `retrieveSessionCookie` to always use encoded cookie matching - Update E2E tests to remove beta flag branching for conflicting cookie options
e49d028 to
1ba1e48
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Motivation
The
betaEncodeCookieOptionsfeature flag was introduced as a beta option to encode cookie options into the cookie value, mitigating micro-session issues caused by conflicting cookie configurations (e.g., when RUM and Logs SDKs are initialized with differenttrackSessionAcrossSubdomainsorusePartitionedCrossSiteSessionCookievalues).This option has proven stable and is now ready to be promoted to the default behavior. Removing the beta flag simplifies the codebase and ensures all users benefit from encoded cookie options.
Changes
betaEncodeCookieOptionsinit configuration option and its associatedConfigurationfieldbetaEncodeCookieOptions: true)retrieveSessionCookieto always use the encoded cookie retrieval path, removing theconfigurationparameterbetaEncodeCookieOptionsfrom serialized configuration and default context telemetry&c=0suffix)true/falseloop andtest.fail()guard since the behavior is now always correctTest instructions
yarn test:unit --spec packages/core/src/domain/session/storeStrategies/sessionInCookie.spec.tsyarn test:e2e -g "Session Stores"Checklist