library/Extlib/Session/SaveHandler/Doctrine2.php
public function setLifetime($lifetime, $overrideLifetime = null)
    {
        if ($lifetime < 0) {
            throw new \Zend_Session_SaveHandler_Exception('$lifetime must be greater than 0.');
        } else if (empty($lifetime)) {
            $this->lifetime = (int) ini_get('session.gc_maxlifetime');
        } else {
            $this->lifetime = (int) $lifetime;
        }

        if ($overrideLifetime != null) {
            $this->setOverrideLifetime($overrideLifetime);
        }

        return $this;
    }
public function setLifetime($lifetime, $overrideLifetime = null)
    {
        if ($lifetime < 0) {
            throw new \Zend_Session_SaveHandler_Exception('$lifetime must be greater than 0.');
        } else if (empty($lifetime)) {
            $this->lifetime = (int) ini_get('session.gc_maxlifetime');
        } else {
            $this->lifetime = (int) $lifetime;
        }

        if ($overrideLifetime != null) {
            $this->setOverrideLifetime($overrideLifetime);
        }

        return $this;
    }
public function setLifetime ( $ lifetime , $ overrideLifetime = null ) { if ( $ lifetime < 0 ) { throw new \ Zend_Session_SaveHandler_Exception ( '$lifetime must be greater than 0.' ) ; } else if ( empty ( $ lifetime ) ) { $ this -> lifetime = ( int ) ini_get ( 'session.gc_maxlifetime' ) ; } else { $ this -> lifetime = ( int ) $ lifetime ; } if ( $ overrideLifetime != null ) { $ this -> setOverrideLifetime ( $ overrideLifetime ) ; } return $ this ; }
Set session lifetime and optional whether or not the lifetime of an
existing session should be overridden

$lifetime === false resets lifetime to session.gc_maxlifetime

@param int $lifetime
@param boolean $overrideLifetime (optional)
@return \Extlib\Session\SaveHandler\Doctrine2
@throws \Zend_Session_SaveHandler_Exception
Set session lifetime and optional whether or not the lifetime of an existing session should be overridden