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

后端 未结 12 1007
囚心锁ツ
囚心锁ツ 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:04

    If you are developing applications with the RPCL library (RADPHP) and you are getting this error:

    Application raised an exception class Zend_Session_Exception with message 'session has already been started by session.auto-start or session_start()',

    then here is my solution.

    You will be surprised how simple it is. Simple include the line

    require_once("zcommon.inc.php");

    just after the opening PHP tag in the file containing ZAuth component – usually this is the file with a DataModule form. Of course make sure the file zcommon.inc.php is in your path. This will ensure that the Zend session will start first instead of the RPCL session.

    Also make sure the name of the php files in your application correspond to the name of the containing classes.

提交回复
热议问题