From 45138841155f7b5f5c406b7b992d001ae71ea53e Mon Sep 17 00:00:00 2001 From: sgiehl Date: Sun, 3 Jan 2016 01:36:59 +0100 Subject: [PATCH] fixes #9 - use negative TTL for setCookie to remove them --- PiwikTracker.php | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/PiwikTracker.php b/PiwikTracker.php index ebd0115..774fe5d 100644 --- a/PiwikTracker.php +++ b/PiwikTracker.php @@ -1239,10 +1239,9 @@ protected function loadVisitorIdCookie() */ public function deleteCookies() { - $expire = $this->currentTs - 86400; $cookies = array('id', 'ses', 'cvar', 'ref'); foreach ($cookies as $cookie) { - $this->setCookie($cookie, '', $expire); + $this->setCookie($cookie, '', -86400); } }