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 wildcard domain for 3rd party cookies to be set explicitly in conf... #152

Conversation

wThomas84
Copy link

Pull request for the enhancements as discussed in this thread: http://forum.piwik.org/read.php?2,107159,page=1#msg-107379

My last pull request let the tests fail. Maybe it is due to the tests do not take into account that method signature(s) have changed, especially in Cookie.php, l.86. Unfortunately I do not know where and what to adapt and what exactly failed, due to I cannot find any details in Travis overview.
Help will be appreciated.

…onfig.ini.php

Extend Cookie constructor to accept domain

In order to be able to set a 3rd party cookie's domain explicitly (so
that the browser accepts it and sets it to the correct domain), the
constructor was adapted to accept a cookie domain parameter. The
concerning usages of that constructor were adapted as well.
Now it is possible to put a line 'cookie_domain = ",mydomain.tld" ' into
the config.ini.php that will be used by piwik.

Cookie domain parsing adjusted

The changes make sure that cookie wildcard domains always follow the
pattern ".<domain_name>", independent of the domain that was configured
in the config.ini.php for the key "cookie_domain".

Add cookie_domain entry to global configuration
@mattab
Copy link
Member

mattab commented Dec 8, 2013

Cheers for the PR!

Build fails because you write Piwik_Config instead of Config (we are now using PHP namespaces so the Piwik_ prefix is not required)

--> please consider testing the code before making the pull request ;)

@mattab
Copy link
Member

mattab commented Dec 23, 2013

Please reopen the PR when you got a chance to update it with latest Piwik. Cheers

@mattab mattab closed this Dec 23, 2013
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