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:
authorThomas Steur <thomas.steur@googlemail.com>2014-10-14 07:42:47 +0400
committerThomas Steur <thomas.steur@googlemail.com>2014-10-14 07:42:47 +0400
commitfa106611dfd493e360b22938b35471582f26ac6c (patch)
tree12b05bd9f903377297d0943980423eaf8b1d5837
parent1eb64a40a0c5220bfe40273de33c0a130980ad99 (diff)
refs #6341 for consistency set cookie lifetime to 13 months as well
-rw-r--r--config/global.ini.php4
-rw-r--r--libs/PiwikTracker/PiwikTracker.php2
2 files changed, 3 insertions, 3 deletions
diff --git a/config/global.ini.php b/config/global.ini.php
index 7d0a80ac7c..3210c1efda 100644
--- a/config/global.ini.php
+++ b/config/global.ini.php
@@ -503,9 +503,9 @@ trust_visitors_cookies = 0
; This is used only if use_third_party_id_cookie = 1
cookie_name = _pk_uid
-; by default, the Piwik tracking cookie expires in 2 years
+; by default, the Piwik tracking cookie expires in 13 months (365 + 28 days)
; This is used only if use_third_party_id_cookie = 1
-cookie_expire = 63072000
+cookie_expire = 33955200;
; The path on the server in which the cookie will be available on.
; Defaults to empty. See spec in http://curl.haxx.se/rfc/cookie_spec.html
diff --git a/libs/PiwikTracker/PiwikTracker.php b/libs/PiwikTracker/PiwikTracker.php
index 15e3b8420c..051cb74745 100644
--- a/libs/PiwikTracker/PiwikTracker.php
+++ b/libs/PiwikTracker/PiwikTracker.php
@@ -189,7 +189,7 @@ class PiwikTracker
}
// Life of the visitor cookie (in sec)
- $this->configVisitorCookieTimeout = 63072000; // 2 years
+ $this->configVisitorCookieTimeout = 33955200; // 13 months (365 + 28 days)
// Life of the session cookie (in sec)
$this->configSessionCookieTimeout = 1800; // 30 minutes
// Life of the session cookie (in sec)