Zend_Controller_Action_Helper_Redirector session issue fixed

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');

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!

This entry was posted in PHP, Technology and tagged , , , , . Bookmark the permalink.

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Google+ photo

You are commenting using your Google+ account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )


Connecting to %s