|
|||
|
Hello, all
I'm getting this error C:\works\workspace\metamodeling\tests\php-world\maven2\oaw-mvn\target\classes\model>php test-auth.php Fatal error: Uncaught exception 'Zend_Session_Exception' with message 'Session must be started before any output has been sent to the browser; output started in C:\works\model\Security.php/61' in C:\works\model\zend\Session.php:362 Stack trace: #0 C:\works\model\zend\Session\Namespace.php(116): Zend_Session::start(true) #1 C:\works\model\zend\Auth\Storage\Session.php(85): Zend_Session_Namespace->__construct('Zend_Auth') #2 C:\works\model\zend\Auth.php(92): Zend_Auth_Storage_Session->__construct() #3 C:\works\model\Security.php(27): Zend_Auth->getStorage() #4 C:\works\workspace\metamodeling\tests\php-world\maven2\oaw in C:\works\model\zend\Session.php on line 362 when trying to save result row object after authenticate against a table, if I do not save the object everything is ok, this is my piece of code: final public function authenticate($userName, $userPassword) { $this->authAdapter->setIdentity($userName)->setCredential($userPassword); // Perform the authentication query $result = $this->authAdapter->authenticate(); //Store the row object for later use, so not authenticate every time its needed if($result->isValid()) { //Comment this line and every thing goes well, I get the identity, etc... Zend_Auth::getInstance()->getStorage()->write($this->getResultRowObject()); } return $result; } Any Idea on what it is going on?? Thanks in advance. David |
![]() |
| Thread Tools | |
| Display Modes | |
|
|