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

Feature: Automatic sessionId #94

Closed
FredrikOseberg opened this issue Oct 11, 2024 · 1 comment
Closed

Feature: Automatic sessionId #94

FredrikOseberg opened this issue Oct 11, 2024 · 1 comment
Labels
enhancement New feature or request stale

Comments

@FredrikOseberg
Copy link
Contributor

FredrikOseberg commented Oct 11, 2024

Describe the feature request

In Unleash, the rollout strategies are based on a murmur hash. Values that you send in are normalized between 0-100 and used to define if you fall within or without the gradual rollout percentage. In order to make sure that users get the same experience every time, we make sure to attempt to use the same values every time. By default in Unleash, the stickiness is looking for the following values in your context field in prioritised order: userId, sessionId. If we can't find any of these values in the context we will default to a random value and the stickiness will not be guaranteed.

What we've discovered is that most client side applications want the user experience to be consistent, so in the javascript SDK we've implemented a default sessionId property that is set if the user does not provide one. This is also saved to local storage and retrieved on subsequent visits.

We'd like to implement the same in the Swift SDK, leveraging a storage mechanism to store/retreive this value locally to ensure a consistent experience.

Copy link

stale bot commented Nov 10, 2024

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

@stale stale bot added the stale label Nov 10, 2024
@stale stale bot closed this as completed Nov 22, 2024
@github-project-automation github-project-automation bot moved this from For later to Done in Issues and PRs Nov 22, 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 stale
Projects
Archived in project
Development

No branches or pull requests

1 participant