Zend Framework

Can't register session validator before session is started

Details

  • Type: Bug Bug
  • Status: Postponed Postponed
  • Priority: Minor Minor
  • Resolution: Unresolved
  • Affects Version/s: 1.0.2
  • Fix Version/s: Next Minor Release
  • Component/s: Zend_Session
  • Labels:
    None
  • Fix Version Priority:
    Should Have

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

Activity

Hide
Darby Felton added a comment -

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()).

Show
Darby Felton added a comment - 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()).
Hide
Wil Sinclair added a comment -

This issue should have been fixed for the 1.5 release.

Show
Wil Sinclair added a comment - This issue should have been fixed for the 1.5 release.
Hide
Wil Sinclair added a comment -

This doesn't appear to have been fixed in 1.5.0. Please update if this is not correct.

Show
Wil Sinclair added a comment - This doesn't appear to have been fixed in 1.5.0. Please update if this is not correct.
Hide
Ralph Schindler added a comment -

I will have to explore the problem in more detail.

Updating project management info.

Show
Ralph Schindler added a comment - I will have to explore the problem in more detail. – Updating project management info.
Hide
Ralph Schindler added a comment -

Will evaluate within 2 weeks

Show
Ralph Schindler added a comment - Will evaluate within 2 weeks

People

Vote (2)
Watch (1)

Dates

  • Due:
    Created:
    Updated:

Time Tracking

Estimated:
2h
Original Estimate - 2 hours
Remaining:
2h
Remaining Estimate - 2 hours
Logged:
Not Specified
Time Spent - Not Specified