最长执行时间是否超过了会话启动的时间?

问题描述

| 当我在引导文件中使用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;
}
谢谢。     

解决方法

        Zend_Application_Resource_Session http://framework.zend.com/manual/zh/zend.application.available-resources.html 引导它是第一个     ,        不是因为会话,而是
max_execution_time
max_execution_time
可以在php.ini中设置,因此您可以对其进行修改:
max_execution_time = 60     ; Maximum execution time of each script,in seconds