当我在引导文件中使用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();
浏览器会在页面加载像永远,由于它,它像无限while循环。 上下文
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;
}
谢谢。
一个该行的上下文? (之前有什么?) – 2011-06-14 08:26:35
HM我曾经有过同样的错误。这是因为我使用Zend-Session将信息存储在数据库中。但是我还没有设置数据库,直到我开始会话的地步。你的会话使用了数据库适配器吗? – 2011-06-14 08:28:20
@Matt Ellen我添加了上下文 – 2011-06-14 08:49:51