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

Allow specifying cookie name for CID. #9239

Merged
merged 2 commits into from
May 10, 2017
Merged

Conversation

lannka
Copy link
Contributor

@lannka lannka commented May 9, 2017

Closes #8847

setCookie(window, 'url-abc', 'cid-for-abc');
// Make sure cookie does not exist
setCookie(window, 'url-xyz', '');
return expandAsync('?a=CLIENT_ID(abc,,url-abc)&b=CLIENT_ID(xyz,,url-xyz)',
Copy link
Contributor

Choose a reason for hiding this comment

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

What does scope do when there's a cookie name provided?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

cookieName is only used when a cookie is written. scope is still used for all other thing, for e.g., cidOnCache = sha384(baseCid + scope + domain)

@lannka lannka merged commit f2498ee into ampproject:master May 10, 2017
@lannka lannka deleted the cookie-name branch May 10, 2017 16:59
@rudygalfi
Copy link
Contributor

@lannka
Copy link
Contributor Author

lannka commented May 12, 2017

@rudygalfi updated in the next PR: #9281
please review

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

Successfully merging this pull request may close these issues.

None yet

5 participants