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

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

    Before this drives you mad, there's probably nothing wrong with your code!

    Check your application.ini for the session save path, for me it is APPLICATION_PATH '/session'

    Now check you have the correct permissions! If not then cd into the application folder and type

    sudo chmod 777 session
    sudo chown -R [usernamehere] session
    sudo chgrp -R [usernamehere] session
    

    Job Done!

提交回复
热议问题