ZF-7915: Check session_set_save_handler() and throw exception if it failed to set saveHandler

Issue Type: Improvement Created: 2009-09-21T12:38:35.000+0000 Last Updated: 2013-01-02T16:55:30.000+0000 Status: Open Fix version(s): Reporter: Vladimir Michailenko (mich) Assignee: Ralph Schindler (ralph) Tags: - Zend_Session

Related issues: Attachments: - Session.diff


If session is already started, Zend_Session::setSaveHandler(new Zend_Session_SaveHandler_DbTable()) silently fails to set session_set_save_handler(), but Zend_Session::getSaveHandler() shows that saveHander is set successfully. I added 2 checks to ensure that session was not started before and session_set_save_handler() successfully changed saveHandler.


Posted by Vladimir Michailenko (mich) on 2009-09-21T12:39:20.000+0000

Diff attached.

Posted by Michal Vrchota (techi) on 2012-10-01T15:32:17.000+0000

Still not fixed? Issue is pretty reasonable. I have been wondering, why my session db table is empty while php sessions were working. I.e. calling session_start() before setting save handler causes session save handler to fail silently.

Posted by Martin Hujer (mhujer) on 2013-01-02T16:55:30.000+0000

What can be done to have this fixed?

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.