Exemplo n.º 1
0
        }
        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 int $gcProbability If specified it will replace the previous value of
     *                           this property.
     *
     * @return boolean The previous value of the property
     */
    public static 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;
    }
}
/**
 * init {@link HTTP_Session2}
 * 
 * @see HTTP_Session2::init()
 */
HTTP_Session2::init();