Maximum execution time exceeds due to session start?
-
27-10-2019 - |
Question
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_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;
}
Thanks.
Solution
Zend_Application_Resource_Session
http://framework.zend.com/manual/en/zend.application.available-resources.html
bootstap it is one of the first
OTHER TIPS
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
Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow