diff options
author | Matthieu Aubry <mattab@users.noreply.github.com> | 2016-10-02 00:19:40 +0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2016-10-02 00:19:40 +0300 |
commit | ca2f667f4f0d531bb1f6ab7d4c8952172ad3b71f (patch) | |
tree | b34e0f8d5f9e974759b3eab9108b1b259643e07a /core/Tracker/Request.php | |
parent | b6369e8187fac5ff577a6767dbbaba0c0f636f65 (diff) | |
parent | 829b444f6513cc897b22e09b53a64f47078a76c3 (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.php | 6 |
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 |