Skip to content

Fix GFP cookie expiration to account for serving sending timestamp in… - #40462

Merged
glevitzky merged 2 commits into
ampproject:mainfrom
glevitzky:cookie2
Jan 7, 2026
Merged

glevitzky merged 2 commits into
ampproject:mainfrom
glevitzky:cookie2

Conversation

@glevitzky

Copy link
Copy Markdown
Contributor

Fixes issue where client sets cookie expiration thinking the expires timestamp is in ms when serving actually sets the timestamp in seconds. Fix is to simply multiply by 1000 to convert seconds to milliseconds.

@glevitzky glevitzky assigned glevitzky and erwinmombay and unassigned glevitzky Jan 7, 2026
@glevitzky
glevitzky requested a review from erwinmombay January 7, 2026 21:20
@glevitzky
glevitzky enabled auto-merge (squash) January 7, 2026 21:28
@glevitzky
glevitzky merged commit 7c2eeff into ampproject:main Jan 7, 2026
52 checks passed
ampprojectbot pushed a commit that referenced this pull request Jan 7, 2026
#40462)

* Fix GFP cookie expiration to account for serving sending timestamp in seconds not milliseconds.

* Add comment.

(cherry picked from commit 7c2eeff)
ampprojectbot pushed a commit that referenced this pull request Jan 8, 2026
#40462)

* Fix GFP cookie expiration to account for serving sending timestamp in seconds not milliseconds.

* Add comment.

(cherry picked from commit 7c2eeff)
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.

3 participants