Does Zend_Registry live until next user request?

k0rfain

New Member
Does Zend_Registry live until next user request?I put this code in the end of index.php file in zend project:(The code inside existing zend website)Trial code: \[code\] //end of index.php file Bootstrap::run(); //trial for find out the life of Zend_Registry. $registry = Zend_Registry::getInstance(); if (!isset($registry['index1'])) { Zend_Registry::set('index1', 'value7'); echo '<h1>Zend_Registry was unset</h1>'; } else { echo '<h1>Zend_Registry was set</h1>'; }\[/code\]Results after each click to home page:Zend_Registry was unsetThanks
 
Back
Top