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

Fixing session id to be something per user as oppose to global hard-c… #82

Merged
merged 2 commits into from
Sep 13, 2021

Conversation

donnadionne
Copy link
Contributor

…oded.

cpp/client.cc Outdated
context.AddMetadata("membership", "premium");
if (affinity) {
// use something unique per user as session id.
context.AddMetadata("session_id", token);
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Are we supposed to use the same value for session_id and authorization token?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I just picked token as it is already per user; but we can invent something else per user (so we are not confusing people in this example). Maybe that's better?

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yeah, I think that would be better. cc @menghanl who just added go support.

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yeah, let's use a different value.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

ok sounds good! Fixed! PTAL thank you!

Copy link
Contributor

@dapengzhang0 dapengzhang0 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@donnadionne donnadionne merged commit e3c205a into GoogleCloudPlatform:master Sep 13, 2021
dapengzhang0 added a commit that referenced this pull request Oct 13, 2021
This is the Java version of #82 to fix the session affinity id.

Fixes #83
dapengzhang0 added a commit to dapengzhang0/traffic-director-grpc-examples that referenced this pull request Oct 13, 2021
dapengzhang0 added a commit that referenced this pull request Oct 18, 2021
Backport of #98

This is the Java version of #82 to fix the session affinity id.

Fixes #83
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants