Issues

ZF-2083: Can't register session validator before session is started

Issue Type: Bug Created: 2007-10-17T15:25:13.000+0000 Last Updated: 2012-08-31T09:11:42.000+0000 Status: Postponed Fix version(s): Reporter: Marc Bennewitz (GIATA mbH) (mben) Assignee: Ralph Schindler (ralph) Tags: - Zend_Session

Related issues: Attachments:

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:

<pre class="highlight">
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

Have you found an issue?

See the Overview section for more details.

Copyright

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

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

Contacts