Skip to content

Commit

Permalink
Merge pull request #17 from piwik/fix_delete_cookies
Browse files Browse the repository at this point in the history
Fixes deleteCookie() method
  • Loading branch information
Matthieu Aubry committed Jan 12, 2016
2 parents ac3e26b + 4513884 commit f026613
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions PiwikTracker.php
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}
}

Expand Down

0 comments on commit f026613

Please sign in to comment.