我想一個網站移動到新的主機新服務器:(MEDIATEMPLE)Zend_Session_Exception「會話已經開始」 HTTP到HTTPS和反之亦然
當你堅持HTTP或HTTPS一切精細。當從http-> https或https-> http時,你會得到錯誤。
Fatal error: Uncaught exception 'Zend_Session_Exception' with message 'session has already been started by session.auto-start or session_start()' in /var/www/vhosts/FakeSite.com/httpdocs/library/Zend/Session.php:462 Stack trace: #0 /var/www/vhosts/FakeSite.com/httpdocs/library/Zend/Session/Namespace.php(143): Zend_Session::start(true) #1 /var/www/vhosts/FakeSite.com/httpdocs/library/Zend/Auth/Storage/Session.php(87): Zend_Session_Namespace->__construct('Zend_Auth') #2 /var/www/vhosts/FakeSite.com/httpdocs/library/Zend/Auth.php(91): Zend_Auth_Storage_Session->__construct() #3 /var/www/vhosts/FakeSite.com/httpdocs/library/Zend/Auth.php(141): Zend_Auth->getStorage() #4 /var/www/vhosts/FakeSite.com/httpdocs/application/layouts/layout.phtml(12): Zend_Auth->hasIdentity() #5 /var/www/vhosts/FakeSite.com/httpdocs/library/Zend/View.php(108): include('/var/www/vhosts...') #6 /var/www/vhosts/FakeSite.com/httpdocs/library/Zend/View/Abstract.php(831): Zend_View->_run('/var/www/vhosts...') #7 /var/www/vh in /var/www/vhosts/FakeSite.com/httpdocs/library/Zend/Session.php on line 462
會話路徑是可寫的,如果你堅持一個協議,似乎工作正常。沒有session_start()調用,並且session.auto-start爲0.
代碼在其他3臺服務器上運行良好。它必須是一個配置問題,但我一直沒能找到它
我已經證實了session.auto_start = 0本地和主,但我試圖將該行添加到application.ini。仍然得到相同的錯誤。 – Robert 2011-04-06 13:55:18