MATTHEW:>No, actually. When you set it as you did in preDispatch(), there is no check until postDispatch() to see if a redirect occurred. This should likely be changed; care to file an issue in the tracker?<
ME: I had a similar problem, setting a redirect in the preDispatch() w/ the same code you used in your login tutorial. I thought I'd get around the issues by moving the code to a private method: private function _redirectLoggedInUsers() { //redirect the following actions to the homepage if(Zend_Auth::getInstance()->hasIdentity()) { switch($this->getRequest()->getActionName()) { case 'index': case 'login': case 'forgot': return $this->_helper->redirector('index', 'index'); } }; } and then call that method from the ('index','login','forgot') controllers respectively. But it behaves the same way as in preDispatch(). Zend_Test ignores the redirect although it works fine in actual use. -- View this message in context: http://www.nabble.com/Possible-bug-in-Zend_Test_PHPUnit---tp21535557p24467170.html Sent from the Zend Framework mailing list archive at Nabble.com.