Zend_Session: Session must be started before any output has been sent to the browser

后端 未结 7 798
心在旅途
心在旅途 2021-01-19 04:07

I\'ve run into this issue before, but I can\'t remember how to solve it. I have created a bare bones (can\'t get any simpler) controller, and am just trying to echo somethin

7条回答
  •  挽巷
    挽巷 (楼主)
    2021-01-19 04:18

    For some reason, I was trying to set some session variable in my index.php file after the application had finished bootstrapping. Not sure why this didn't cause a problem before, but when I removed this from my index.php, it worked.

    $userSession = new Zend_Session_Namespace('Auth');
    $userSession->forcePasswordChange = false;
    

提交回复
热议问题