piwik/piwik — pull request #246 by brownoxford (2014-03-24 15:44:12+00:00)
Title: Use proper base timestamp when setting cookie TTL

The PiwikTracker PHP class was using the createTs as a base
for applying the cookie TTL offset instead of using the currentTs.

This will result in cookie TTLs being in the past TTL seconds
after the initial visitorId cookie is created. For example, 30
minutes after the initial visitorId cookie is set, all "ses"
cookies will start getting set with expiration times in the past.