ZF-2083: Can't register session validator before session is started
Description
on register a session validator using registerValidator it store the validator informations in the session before it is started
Therefore the following code is not applicable:
Zend_Session::setOptions( array(/* ... */) );
Zend_Sesion::registerValidator( new Zend_Session_Validator_HttpUserAgent() ); // this will write data in $_SESSION['__ZF']['VALID']
// ...
// action that use sessions
$mysession = new Zend_Session_Namespace('mysession'); // this will start the session if it is not started
Comments
Posted by Darby Felton (darby) on 2007-11-07T12:52:30.000+0000
Changed priority to minor, since an easy workaround is present (start the session first; e.g., in your bootstrap or elsewhere, call {{Zend_Session::start()}}).
Posted by Wil Sinclair (wil) on 2008-03-21T17:05:27.000+0000
This issue should have been fixed for the 1.5 release.
Posted by Wil Sinclair (wil) on 2008-04-18T13:11:49.000+0000
This doesn't appear to have been fixed in 1.5.0. Please update if this is not correct.
Posted by Ralph Schindler (ralph) on 2008-04-22T10:48:16.000+0000
I will have to explore the problem in more detail.
--
Updating project management info.
Posted by Ralph Schindler (ralph) on 2009-01-10T10:08:37.000+0000
Will evaluate within 2 weeks