Thanks to all.

I resolve my problem at this end.
So my code was good for the management of the zend_session, but it was a
weird problem with the smarty template integration with the zend_plugin.

So for make it simple, i activate a dynamic mode in my view (smarty
template), and it send some html code in the view.
The view was call in my Authenticate plugin (preDispatch() method), so that
s why it indicate me i have some problems in my plugin.

Change these line if translation of dynamic data is needed ;-)
$this->register_prefilter("smarty_prefilter_i18n");
to this
$this->register_outputfilter("smarty_prefilter_i18n"); 
  http://smarty.incutio.com/?page=SmartyMultiLanguageSupport
http://smarty.incutio.com/?page=SmartyMultiLanguageSupport 

So i desactivate this mode, and i don't have anymore problems....

I hope it will be useful for somebody.
Regis.



Jim Scherer wrote:
> 
> I am using 8.0, not sure what revision but I updated it within the last
> three days. My error occurs from a $this->_redirect('/') in my
> AuthorizeController (Zend_Controller_Action). It only occurs if I have
> done some sort of echo anytime previous to the $this->_redirect('/'). If
> I'm not performing a $this->_rediect('/') the echo doesn't seem to matter.
> Hopefully that helps.
> 
> Jim
> PHP/Linux/Apache/etc
> 
> 
> GavinZend wrote:
>> 
>> There are several possible reasons for this, including both Zend_Session 
>> related and non-ZF related.
>> Which version of the ZF are you using?
>> Which method/function call is the immediate cause of the "Cannot modify" 
>> message?
>> 
>> Cheers,
>> Gavin
>> 
>> Jim Scherer wrote:
>>> Hi,
>>>
>>> I've been getting the 'Cannot modify header information - headers
>>> already
>>> sent ' on my hosted server for the last couple of days but not on a
>>> local
>>> server, and for the life of me couldn't figure out why. At least now I
>>> understand why I get it on one and not the other.  I also get mine
>>> during
>>> authentication. I recently added caching to my application and thought
>>> that
>>> it somehow was related, but I wasn't able to pinpoint it. Hopefully
>>> someone
>>> knows what is going on. Thanks for the post, this was bothering me.
>>>
>>> Jim
>>>   
>> 
>> 
> 
> 

-- 
View this message in context: 
http://www.nabble.com/Zend_Session%3A%3Adestroy%28%29---Cannot-modify-header-information-tf3364458s16154.html#a9380723
Sent from the Zend Framework mailing list archive at Nabble.com.

Reply via email to