I am getting following error when I use Zend_Session::Start() in my bootstrap file.
Maximum execution time of 30 seconds exceeded in G:\wamp\library\Zend\Session.php on line 480
On line 480 of Zend\Session.php code is
$startedCleanly = session_start();
The browser keeps loading the page like forever due to it , its like infinite while loop . Context
class Bootstrap extends Zend_Application_Bootstrap_Bootstrap
{
protected $_config;
protected $_acl;
protected $_auth;
public function _initMyAutoloader()
{
$autloader = Zend_Loader_Auto开发者_JS百科loader::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;
}
Thanks.
It's not because of session, but max_execution_time
.
max_execution_time
can be set in php.ini, so you can modify it:
max_execution_time = 60 ; Maximum execution time of each script, in seconds
精彩评论