diff options
author | mattab <matthieu.aubry@gmail.com> | 2016-09-27 05:58:43 +0300 |
---|---|---|
committer | mattab <matthieu.aubry@gmail.com> | 2016-09-27 05:58:43 +0300 |
commit | 829b444f6513cc897b22e09b53a64f47078a76c3 (patch) | |
tree | 45a7499d8dbe6dab5818f3724605744f4c4ac041 /core/Tracker/Request.php | |
parent | 60ab0f1cc3ecbc1f78bd90c2551cb9adba5d73bb (diff) |
Delete UID cookie only when found
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 b6f3163046..dd594b9974 100644 --- a/core/Tracker/Request.php +++ b/core/Tracker/Request.php @@ -614,13 +614,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(), @@ -684,7 +684,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 |