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>2010-08-08 09:11:47 +0400
committerrobocoder <anthon.pang@gmail.com>2010-08-08 09:11:47 +0400
commit59710e8f52a9c6f88272c75ccd39cf3c95afbe59 (patch)
treeead775cc0997b87871fb4da98fe36b75f983f581 /core/Cookie.php
parent169d85cdd9c06f30511235ee111384b114a0e9f3 (diff)
refs #1419 - add 'Remember Me' to Login form; unchecked by default (which is safe by default); small change to core/Cookie.php to allow cookie to expire at end-of-session; shorten persistent cookie life to 14 days
Note: potential compat buster: logme() cookie is no longer persistent git-svn-id: http://dev.piwik.org/svn/trunk@2901 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 50ea785d6e..7bf2e30927 100644
--- a/core/Cookie.php
+++ b/core/Cookie.php
@@ -61,7 +61,7 @@ class Piwik_Cookie
$this->expire = $expire;
if(is_null($expire)
|| !is_numeric($expire)
- || $expire <= 0)
+ || $expire < 0)
{
$this->expire = $this->getDefaultExpire();
}