/** * Update expiration time * * @return void */ public function updateExpiry() { $ttl = \XLite\Core\Session::getTTL(); $this->setExpiry(0 < $ttl ? $ttl : time() + self::MAX_TTL); }
/** * Update expiration time * * @return void */ public function updateExpiry() { $ttl = \XLite\Core\Session::getTTL(); $this->setExpiry(0 < $ttl ? $ttl : \XLite\Core\Converter::time() + self::getMaxTTL()); }