I just commited a fix to the issue described in this post to Zend Framework’s trunk. The problem can now be solved by fetching the helper and setting a flag:
$redirectorHelper = Zend_Controller_Action_HelperBroker::getStaticHelper('Redirector'); $redirectorHelper->setCloseSessionOnExit(false);
And thats that. Now the redirector will NOT call session_write_close() or Zend_Session::writeClose() (if you use Zend_Session) upon exit. This way the session is still available in any function that is registered as a shutdown function. The default behavior is to close it, so if this is not an issue for you, you don’t need to think about it.
No need for that custom redirector helper anymore!