“session has already been started…” exception in Zend Framework application

后端 未结 12 991
囚心锁ツ
囚心锁ツ 2020-12-31 08:18

I get this error when trying to load a Zend Framework application:

Fatal error: Uncaught exception \'Zend_Session_Exception\' with message \'sessi

12条回答
  •  暖寄归人
    2020-12-31 09:24

    I had the same error. On local machine, everything worked fine. On server not. My solution was to put Zend_Session::start(); in the index.php before running bootstrap. So that it looks like this:

    bootstrap()->run();
    

提交回复
热议问题