Fixed ttl thinking 0 was false

that was setting the TTL to the default value
This commit is contained in:
Florian Bouillon 2019-04-26 15:22:41 +02:00
parent 952535a19f
commit c71600aa66

View File

@ -42,7 +42,7 @@ class SessionCache extends AbstractCache
}
$_SESSION[$key] = array(
"value" => $value,
"ttl" => time() + ($ttl != null ? $this->getTTL($ttl) : $this->ttl)
"ttl" => time() + ($ttl !== null ? $this->getTTL($ttl) : $this->ttl)
);
return true;
}