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
path: root/js
diff options
context:
space:
mode:
authorAnthon Pang <apang@softwaredevelopment.ca>2013-02-23 03:01:47 +0400
committerAnthon Pang <apang@softwaredevelopment.ca>2013-02-23 03:01:47 +0400
commit0761c97ea5f24452a7e4ac3b6e3d2a3f7001e5b2 (patch)
tree55e52fcd0c5e3ce9bedc99666ee53eedb00bee3f /js
parentcd62e1d8bd45473827cdf67b51c3aa3016ff8cc8 (diff)
revert 2 yr broken "feature" - we do not want to set the secure flag in tracker cookies for http/https compatibility
Diffstat (limited to 'js')
-rw-r--r--js/piwik.js11
1 files changed, 4 insertions, 7 deletions
diff --git a/js/piwik.js b/js/piwik.js
index 30c7860371..310d9a510d 100644
--- a/js/piwik.js
+++ b/js/piwik.js
@@ -1143,9 +1143,6 @@ var
// Life of the referral cookie (in milliseconds)
configReferralCookieTimeout = 15768000000, // 6 months
- // Should cookies have the secure flag set
- cookieSecure = documentAlias.location.protocol === 'https:',
-
// Custom Variables read from cookie, scope "visit"
customVariables = false,
@@ -1436,7 +1433,7 @@ var
* or when there is a new visit or a new page view
*/
function setVisitorIdCookie(uuid, createTs, visitCount, nowTs, lastVisitTs, lastEcommerceOrderTs) {
- setCookie(getCookieName('id'), uuid + '.' + createTs + '.' + visitCount + '.' + nowTs + '.' + lastVisitTs + '.' + lastEcommerceOrderTs, configVisitorCookieTimeout, configCookiePath, configCookieDomain, cookieSecure);
+ setCookie(getCookieName('id'), uuid + '.' + createTs + '.' + visitCount + '.' + nowTs + '.' + lastVisitTs + '.' + lastEcommerceOrderTs, configVisitorCookieTimeout, configCookiePath, configCookieDomain);
}
/*
@@ -1661,7 +1658,7 @@ var
purify(referralUrl.slice(0, referralUrlMaxLength))
];
- setCookie(refname, JSON2.stringify(attributionCookie), configReferralCookieTimeout, configCookiePath, configCookieDomain, cookieSecure);
+ setCookie(refname, JSON2.stringify(attributionCookie), configReferralCookieTimeout, configCookiePath, configCookieDomain);
}
}
// build out the rest of the request
@@ -1720,12 +1717,12 @@ var
}
}
- setCookie(cvarname, JSON2.stringify(customVariables), configSessionCookieTimeout, configCookiePath, configCookieDomain, cookieSecure);
+ setCookie(cvarname, JSON2.stringify(customVariables), configSessionCookieTimeout, configCookiePath, configCookieDomain);
}
// update cookies
setVisitorIdCookie(uuid, createTs, visitCount, nowTs, lastVisitTs, isDefined(currentEcommerceOrderTs) && String(currentEcommerceOrderTs).length ? currentEcommerceOrderTs : lastEcommerceOrderTs);
- setCookie(sesname, '*', configSessionCookieTimeout, configCookiePath, configCookieDomain, cookieSecure);
+ setCookie(sesname, '*', configSessionCookieTimeout, configCookiePath, configCookieDomain);
// tracker plugin hook
request += executePluginMethod(pluginMethod);