Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/matomo-org/matomo.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMatthieu Aubry <mattab@users.noreply.github.com>2016-10-02 00:19:40 +0300
committerGitHub <noreply@github.com>2016-10-02 00:19:40 +0300
commitca2f667f4f0d531bb1f6ab7d4c8952172ad3b71f (patch)
treeb34e0f8d5f9e974759b3eab9108b1b259643e07a /core/Tracker/Request.php
parentb6369e8187fac5ff577a6767dbbaba0c0f636f65 (diff)
parent829b444f6513cc897b22e09b53a64f47078a76c3 (diff)
Merge pull request #10579 from piwik/delete_uid_only_when_found
Delete third party UID cookie only when it was found in the cookie jar
Diffstat (limited to 'core/Tracker/Request.php')
-rw-r--r--core/Tracker/Request.php6
1 files changed, 3 insertions, 3 deletions
diff --git a/core/Tracker/Request.php b/core/Tracker/Request.php
index 30fe2bcf10..8ad254f96b 100644
--- a/core/Tracker/Request.php
+++ b/core/Tracker/Request.php
@@ -615,13 +615,13 @@ class Request
Common::printDebug("We manage the cookie...");
- $cookie = $this->makeThirdPartyCookie();
+ $cookie = $this->makeThirdPartyCookieUID();
// idcookie has been generated in handleNewVisit or we simply propagate the old value
$cookie->set(0, bin2hex($idVisitor));
$cookie->save();
}
- protected function makeThirdPartyCookie()
+ protected function makeThirdPartyCookieUID()
{
$cookie = new Cookie(
$this->getCookieName(),
@@ -685,7 +685,7 @@ class Request
// - By default, reads the first party cookie ID
$useThirdPartyCookie = $this->shouldUseThirdPartyCookie();
if ($useThirdPartyCookie) {
- $cookie = $this->makeThirdPartyCookie();
+ $cookie = $this->makeThirdPartyCookieUID();
$idVisitor = $cookie->get(0);
if ($idVisitor !== false
&& strlen($idVisitor) == Tracker::LENGTH_HEX_ID_STRING