Ok, that makes sense. I still have some difficulty to integrate what I read in the symfony book.
So I used the set and getAttribute methods of the $this->getUser() object. It works perfectly. Thanks so much! Pierre Am 07.02.2008 um 17:51 schrieb Charley Tiggs: > > Flash variables are only stored in the session until the next view > is displayed. If you want the flash variable to persist beyond the > next page, you'll have to manage that in your session directly. > > More information here: <http://www.symfony-project.org/book/1_0/06- > Inside-the-Controller-Layer#Flash%20Attributes> > > In particular: > > "...even if you don't require it during this second action, the > flash will disappear from the session anyway..." > > Charley > > [EMAIL PROTECTED] said on Thursday, February 7, 2008: > >> >> Hi Folks, >> >> I have a problem with a disappearing flash variable. >> >> In my current project I'm using symfony 1.0 with propel. To display >> results I use sfPropelPager. Results can be filtered by different >> categories that the user can put together in a form. Once the form is >> remote_submitted a specified action is called that gets the filter >> parameters, prepares the pager and passes it to a template. The >> filter parameters are stored in a flash variable to use them the next >> time the user clicks onto one of the pager links. Finally the >> template is send back to update the content area (including the pager >> part) in my main template. >> >> Until here everything works fine, but when clicking on one of the >> pager links, were the same action is called, the flash variable that >> stored the filter parameter is completely gone. I don't understand >> why, but that might be due to my lack of profound understanding of >> symfony. I'm still learning. >> >> If anyone could help, it would be really appreciated. >> Thanks, >> Pierre >> >>> > > > --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "symfony users" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/symfony-users?hl=en -~----------~----~----~----~------~----~------~--~---
