Hi,
I have an action and a view helper both checking
Zend_Auth::getInstance()->hasIdentity() and if it’s true, then setting
$this->session to / returning the object with user data, respectively.
After setting session.save_path to /data/sessions though (be it in
application.ini, Bootstrap.php or even in .htaccess) I get the
following exception:
Fatal error: Uncaught exception 'Zend_Session_Exception' with message
'session has already been started by session.auto-start or
session_start()' in {...}/library/Zend/Session.php:461
Stack trace:
#0 {...}/library/Zend/Session/Namespace.php(143): Zend_Session::start(true)
#1 {...}/library/Zend/Auth/Storage/Session.php(87):
Zend_Session_Namespace->__construct('Zend_Auth')
#2 {...}/library/Zend/Auth.php(91): Zend_Auth_Storage_Session->__construct()
#3 {...}/library/Zend/Auth.php(133): Zend_Auth->getStorage()
#4 {...}/library/Joo/Controller/Action/Helper/Session.php(25):
Zend_Auth->hasIdentity()
#5 {...}/library/Zend/Controller/Action/HelperBroker.php(265):
Joo_Controller_Action_Helper_Session->preDispatch()
#6 /med in {...}/library/Zend/Session.php on line 461
Could someone please explain me the cause and possible solution on this?
Thanks,
Ádám