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

Use proper base timestamp when setting cookie TTL #246

Merged
merged 1 commit into from Mar 24, 2014
Merged

Use proper base timestamp when setting cookie TTL #246

merged 1 commit into from Mar 24, 2014

Conversation

brownoxford
Copy link
Contributor

The PiwikTracker PHP class was using the createTs as a base
for applying the cookie TTL offset instead of using the currentTs.

This will result in cookie TTLs being in the past TTL seconds
after the initial visitorId cookie is created. For example, 30
minutes after the initial visitorId cookie is set, all "ses"
cookies will start getting set with expiration times in the past.

The PiwikTracker PHP class was using the createTs as a base
for applying the cookie TTL offset instead of using the currentTs.

This will result in cookie TTLs being in the past TTL seconds
after the initial visitorId cookie is created. For example, 30
minutes after the initial visitorId cookie is set, all "ses"
cookies will start getting set with expiration times in the past.
@mattab
Copy link
Member

mattab commented Mar 24, 2014

Nice find! Thanks for the PR and fix.

mattab pushed a commit that referenced this pull request Mar 24, 2014
Use proper base timestamp when setting cookie TTL
@mattab mattab merged commit 0ab1d10 into matomo-org:master Mar 24, 2014
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

2 participants