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

Prevent test cookie from being created when cookies are disabled #15107

Merged
merged 1 commit into from Nov 6, 2019

Conversation

tsteur
Copy link
Member

@tsteur tsteur commented Nov 4, 2019

fix #15000

@tsteur tsteur added not-in-changelog For issues or pull requests that should not be included in our release changelog on matomo.org. Needs Review PRs that need a code review labels Nov 4, 2019
@tsteur tsteur added this to the 3.13.0 milestone Nov 4, 2019
@diosmosis
Copy link
Member

Can a tracker JS test be added for this?

@tsteur
Copy link
Member Author

tsteur commented Nov 5, 2019

@diosmosis I don't think it's really possible since this would need to be tested kind of "on load" I think

@dirk-graetz
Copy link

The cookie is still set!

@tsteur
Copy link
Member Author

tsteur commented Feb 25, 2020

@dirk-graetz make sure you are on the latest version of Matomo. Then I recommend you clear all cookies and reload the page. The testcookie should have a very old expiry date meaning it's set but invalidated at the same time (aka deleted). It appearing in the list, depending on the browser, is unavoidable.

If you were to remove the tracking code afterwards for a test, you would notice the cookie is gone.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Needs Review PRs that need a code review not-in-changelog For issues or pull requests that should not be included in our release changelog on matomo.org.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

_pk_testcookies set while using "disableCookies"
3 participants