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:
authorrobocoder <anthon.pang@gmail.com>2011-02-05 07:44:11 +0300
committerrobocoder <anthon.pang@gmail.com>2011-02-05 07:44:11 +0300
commitdf3c1046dc8c4fc0d83ef865851c15c59c356a42 (patch)
tree39b1b48bf60a95783eedc9f084f7052f055a1e49 /core/Cookie.php
parent8db26dead3c1b305513b7a3e243565d9be606dc9 (diff)
refs #1982 - when deleting cookie, mimic the built-in function
php/ext/standard/head.c has this comment: * MSIE doesn't delete a cookie when you set it to a null value so in order to force cookies to be deleted, even on MSIE, we pick an expiry date 1 year and 1 second in the past git-svn-id: http://dev.piwik.org/svn/trunk@3853 59fd770c-687e-43c8-a1e3-f5a4ff64c105
Diffstat (limited to 'core/Cookie.php')
-rw-r--r--core/Cookie.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/core/Cookie.php b/core/Cookie.php
index ae661a8598..9789f777c1 100644
--- a/core/Cookie.php
+++ b/core/Cookie.php
@@ -159,7 +159,7 @@ class Piwik_Cookie
public function delete()
{
$this->setP3PHeader();
- $this->setCookie($this->name, false, time() - 86400, $this->path, $this->domain);
+ $this->setCookie($this->name, 'deleted', time() - 31536001, $this->path, $this->domain);
}
/**