Config.ini.php: cookie_expire


#1

Problem:
adjusted settings in piwkik/config/config.ini.php does not have any effect:


[Tracker]
cookie_expire = 7200

the resulting cookies are still valid for the default settings of 2 years.

same thing changing the default values in piwik/config/global.ini.php.

what to do?


(vipsoft) #2

For first party cookies, you have to configure it via JavaScript.

Reference: http://piwik.org/docs/javascript-tracking/

These are the tracker methods available to change the cookie expiry:


setVisitorCookieTimeout( seconds ) – the default is 2 years
setSessionCookieTimeout( seconds ) – the default is 30 minutes
setReferralCookieTimeout( seconds ) – the default is 6 months