Hello,

I've set the gc_maxlifetime to 14 days, but PHP's session GC is simply not
running. My sessions dir now has hundreds of thousands of files. What am I
doing wrong?

Below is my session initialization:

        $config = Zend_Registry::get('config');
        $options = array(
            'name' => 'app_sid',
            'gc_maxlifetime' => 14 * 86400,
            'cookie_lifetime' => 14 * 86400,
            'cookie_domain' => $config->session->cookieDomain,
            'save_path' => '/var/somedir/sessions'
        );

        Zend_Session::start($options);


As an aside: would using the DbTable save handler be more efficient than the
file handler?

- Alex

Reply via email to