$return = ini_get('session.gc_maxlifetime'); if (isset($gcMaxLifetime) && is_int($gcMaxLifetime) && $gcMaxLifetime >= 1) { ini_set('session.gc_maxlifetime', $gcMaxLifetime); } return $return; } /** * If optional parameter is specified it determines the * probability that the gc (garbage collection) routine is started * and session data is cleaned up * * It returns the previous value of this property * * @param bool $gcProbability If specified it will replace the previous value * of this property * * @static * @access public * @return bool The previous value of the property */ function setGcProbability($gcProbability = null) { $return = ini_get('session.gc_probability'); if (isset($gcProbability) && is_int($gcProbability) && $gcProbability >= 1 && $gcProbability <= 100) { ini_set('session.gc_probability', $gcProbability); } return $return; } } HTTP_Session::_init();