Hello ! I have a problem with Zend_Session class.
Sometimes when I am refreshing page or clicking on a link this fatal error
occurs:
Code:

Fatal error: Uncaught exception 'Zend_Session_Exception' 
with message 'Zend_Session::start() - session_start()
 [ function.session-start function.session-start ]: ps_files_cleanup_dir:
opendir(_sessions/) failed: Result too large (34)' 
in H:\www\wz\Zend\Session.php:379 Stack trace: 
#0 H:\www\wz\Zend\Session\Namespace.php(116): Zend_Session::start(true) 
#1 H:\www\wz\init\session.php(16): Zend_Session_Namespace->__construct() 
#2 H:\www\wz\init\init.php(10): require_once('H:\www\wz\init\...') 
#3 H:\www\wz\index.php(21): require_once('H:\www\wz\init\...')
#4 {main} thrown in H:\www\wz\Zend\Session.php on line 379

Here is the code in my app:

require_once('Zend/Session.php');

garbageCollection( $config['session']['savepath'],
$config['session']['lifetime'] );

ini_set( 'session.cache_expire', 
                        $config['session']['cache_exp']);  
ini_set( 'session.gc_maxlifetime', 
                        $config['session']['lifetime'] );

session_save_path( $config['session']['savepath'] );

$defSessNamespace  = new Zend_Session_Namespace( );

garbageCollector is cleaning folder with sessions.
I use it (and init_set) couse I didin't found it in docs.

If someone have an idea whats wrong please help

Regards
WooKasZ
-- 
View this message in context: 
http://www.nabble.com/Critical-Error-with-Zend_Session-tp15850221s16154p15850221.html
Sent from the Zend Framework mailing list archive at Nabble.com.

Reply via email to