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

set secure flag for cookies served via https #2543

Closed
anonymous-matomo-user opened this issue Jul 5, 2011 · 2 comments
Closed

set secure flag for cookies served via https #2543

anonymous-matomo-user opened this issue Jul 5, 2011 · 2 comments
Labels
Bug For errors / faults / flaws / inconsistencies etc. worksforme The issue cannot be reproduced and things work as intended.
Milestone

Comments

@anonymous-matomo-user
Copy link

Hi

Looking at ticket:409#comment:50

For compability with https pages, the cookie secure flag should be set automatically based on the current URL protocol (in setCookie())

And the follow up, ticket:409#comment:53 I would expect a Piwik install that is only available via https to set the secure cookie flag.

However this doesn't seem to be the case, see for example the cookies that get set on this site: http://www.transitionnetwork.org/

The Piwik server is running 1.5.

Keywords: https secure cookie

@robocoder
Copy link
Contributor

First party cookies are associated with the domain of the URL of the document loaded, not where the javascript came from or the Piwik URL.

The behaviour you're expecting can be replicated by using third-party cookies.

@anonymous-matomo-user anonymous-matomo-user added this to the 1.5.1 Piwik 1.5.1 milestone Jul 8, 2014
@mattab
Copy link
Member

mattab commented Jan 29, 2018

Secure cookies is now available in Matomo 3.3.0
-> You can use _paq.push(['setSecureCookie', true]); to enable the secure flag on all tracking cookies.

Learn more: https://developer.matomo.org/api-reference/tracking-javascript

and FAQ: How do I enable Secure cookie flags in all tracking cookies?

This issue was closed.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Bug For errors / faults / flaws / inconsistencies etc. worksforme The issue cannot be reproduced and things work as intended.
Projects
None yet
Development

No branches or pull requests

3 participants