ZF-5873: Zend_Controller_Action_Helper_Redirector kills the session

Issue Type: Improvement Created: 2009-02-24T03:49:20.000+0000 Last Updated: 2009-02-25T09:24:53.000+0000 Status: Closed Fix version(s): Reporter: Christer Edvartsen (cogo) Assignee: Christer Edvartsen (cogo) Tags: - Zend_Controller

Related issues: Attachments: - Redirector.php.patch


In the redirectAndExit() method in the Zend_Controller_Action_Helper_Redirector class the session is closed. This causes problems when the session needs to be available in a function that is registered as a shutdown function.

An option should be available so the session is not closed automatically.


Posted by Christer Edvartsen (cogo) on 2009-02-24T03:55:23.000+0000

The following patch implements an option that be be used to skip closing of the session. The default is to close it. The patch has been made against revision 14153 of….

Posted by Christer Edvartsen (cogo) on 2009-02-24T04:03:40.000+0000

This patch adds a test method that tests the setting/getting of the new option. The patch is made against the same revision as the other patch.

Posted by sebastien crocquesel (cortex) on 2009-02-25T02:37:53.000+0000

That sounds good to me. We already talk about this on the ML and agree with this new behavior. Letting default to do the close to avoid the php writing session bug on redirect.

Posted by Christer Edvartsen (cogo) on 2009-02-25T08:37:23.000+0000

Closed in revision 14164

Posted by Matthew Weier O'Phinney (matthew) on 2009-02-25T09:24:50.000+0000

cogo nice work. Just a reminder, since this implements some new functionality, please do not merge to the 1.7 release branch; the fix will need to wait to release until 1.8.

Have you found an issue?

See the Overview section for more details.


© 2006-2018 by Zend, a Rogue Wave Company. Made with by awesome contributors.

This website is built using zend-expressive and it runs on PHP 7.