会话启动时,最大执行时间是否超过?

时间:2011-06-14 08:24:05

标签: zend-framework time zend-session php

在我的引导程序文件中使用Zend_Session :: Start()时出现以下错误。

Maximum execution time of 30 seconds exceeded in G:\wamp\library\Zend\Session.php on line 480

在Zend \ Session.php代码的第480行

$startedCleanly = session_start();

浏览器一直在加载页面,就像它一样,它就像无限循环一样。 上下文

class Bootstrap extends Zend_Application_Bootstrap_Bootstrap
{

    protected $_config;
    protected $_acl;
    protected $_auth;

public function _initMyAutoloader()
{
    $autloader = Zend_Loader_Autoloader::getInstance();
    $autloader->pushAutoloader(new Zend_Application_Module_Autoloader(array('basePath'=>APPLICATION_PATH . '/','namespace'=>'')));
    return $autloader ;

}

public function _initMyConfig()
{
    Zend_Session::start();
    $this->_config = new Zend_Config($this->getOptions());
    Zend_Registry::set('config',$this->_config);
    return $this->_config;
}

感谢。

2 个答案:

答案 0 :(得分:0)

Zend_Application_Resource_Session

http://framework.zend.com/manual/en/zend.application.available-resources.html

bootstap它是第一个

之一

答案 1 :(得分:-2)

这不是因为会话,而是max_execution_time

max_execution_time可以在php.ini中设置,所以你可以修改它:

max_execution_time = 60     ; Maximum execution time of each script, in seconds
相关问题