Something else from php.net in the documentation about sessions : " Internet explorer users beware.
When using session_start() to begin a session this session will remain open until the page has finished loading or it is explicitly terminated. You can lose the session however if the the page contains a reference to <img src=""> with name and id references (which may be used if the image is referencing a dynamic image, called by javascript) This seems to casue IE6 to refresh the page session id and hence loose the session. This took hours for me to diagnose when users were getting unexpectedly logged out of my site due to this "" in the img src. " On 29 juin, 18:45, tonio607 <[email protected]> wrote: > I found ressources that I haven't though about before : > > - P3P and the fact that some cookies can't be deleted because they are > considered as "third parties" by IE. > > http://www.oreillynet.com/mac/blog/2002/06/p3p_in_ie6_frustrating_fai... > orhttp://www.sitepoint.com/article/p3p-cookies-ie6/2/ > > - RFC3696 and the fact that DNS should not contain certain characters > like '_' > > It doesn't change anything for me but the problem is clearly related > to IE and its implementation of sessions, not to symfony or PHP. > > Hope it can help somebody. > > On 11 juin, 17:47, tonio607 <[email protected]> wrote: > > > Hi Sidd, > > > Thanks for your answer. Unfortunately, I don't have any underscore > > anywhere. For the moment, I use the session instead which raise lots > > of other problems (especially how to manage the lifecyle). > > > At least, it makes me think that it's a real bug... > > > Regards > > > On 11 juin, 16:07, Sidd <[email protected]> wrote: > > > > Hi Tonio607, > > > > I've got the same issue, sinceIE6does not get theflashvariables. > > > > The solution i've found is to remove the underscores in the domain > > > name of the site. > > > If you have any underscores in your domain name, maybe you should have > > > a try without, it worked fine for me... > > > > Regards, > > > > Sidd > > > > On 4 juin, 13:39, tonio607 <[email protected]> wrote: > > > > > On 4 juin, 13:17, Gareth McCumskey <[email protected]> wrote: > > > > > > Theflashis actually supposed to be destroyed on a page refresh. It is > > > > > supposed to only be displayed once and destroyed. The flsh is meant > > > > > to be > > > > > used as a one time status/event notification message, not as > > > > > something to be > > > > > persisted across requests. > > > > > Except if you get/set it in the same action. The code is working with > > > > firefox so I don't think it's due to any conceptual mistake. > > > > > > On Thu, Jun 4, 2009 at 12:37 PM, tonio607 <[email protected]> > > > > > wrote: > > > > > > > Hi, > > > > > > > I have a very strange bug in my application. I use symfony 1.2.7, > > > > > > Doctrine and sfGuard. > > > > > > > I have a search functionnality with many criterias and I use the > > > > > > DoctrinePager to display the result. The criterias are persisted > > > > > > with > > > > > > aflashvariable. > > > > > > > The problem is when I use Internet Explorer (6 or 7), a click on > > > > > > next > > > > > > page destroy theflash(but not the entire session). On all the other > > > > > > browsers, it works well. It works also when there is security is set > > > > > > to off. And it works and when I don't display the template (ie > > > > > > return > > > > > > sfView::NONE). These three elements are not very helpful to make a > > > > > > diagnosis. > > > > > > > I check the request (cause I thought it was the only difference) and > > > > > > the differences between the header is the presence of > > > > > > HTTP_KEEP_ALIVE: > > > > > > '300', and HTTP_CACHE_CONTROL: max-age=0 in firefox but not in IE. > > > > > > But I'm pretty sure it's not due to the cache (which is turned off > > > > > > in > > > > > > symfony and in the browsers). > > > > > > I also tested just with a string, rather than an array in theflash. > > > > > > It doesn't change anything. > > > > > > I tried to display the $_SESSION to bypass the symfony getFlash or > > > > > > getAttribute with a namespace but the variable corresponding to the > > > > > >flashis empty indeed. > > > > > > I tested the setFlash() which seems to work well as long as you > > > > > > don't > > > > > > reload the page... > > > > > > I also sniff the request with Fiddler to see if it was not a problem > > > > > > with the request sent by IE. I didn't find anything. > > > > > > > Here is a piece of code : > > > > > > > public function executeRechercherDossier(sfWebRequest $request) > > > > > > { > > > > > > $this->form = new EnregistrementDossierFormFilter(); > > > > > > > // Traitement du formulaire > > > > > > if ($request->isMethod('post')) > > > > > > { > > > > > > $valeurs = $request->getParameter($this->form->getName()); > > > > > > $this->form->bind($valeurs); > > > > > > if ($this->form->isValid()) > > > > > > { > > > > > > // Envoi des critères de recherche valides à la page de > > > > > > résultat > > > > > > $this->getUser()->setFlash('criteres', $valeurs); > > > > > > $this->redirect('enregistrement/listeDossiers'); > > > > > > } > > > > > > } > > > > > > } > > > > > > > public function executeResults(sfWebRequest $request) > > > > > > { > > > > > > $criteres = $utilisateur->getFlash('criteres', array()); > > > > > > /*$this->forward404Unless($criteres != null, 'Vous devez arriver > > > > > > du > > > > > > formulaire de recherche pour afficher cette page.');*/ > > > > > > $utilisateur->setFlash('criteres', $criteres); > > > > > > > // Récupération des résultats de la recherche > > > > > > $form = new EnregistrementDossierFormFilter(); > > > > > > $query = $form->buildQuery($criteres); > > > > > > $this->rappelCriteres = $form->afficheCriteres($criteres); > > > > > > > // Récupération des informations de tri et d'ordre > > > > > > $this->tri = $request->getParameter('tri', 'r.numero'); > > > > > > $this->ordre = $request->getParameter('ordre', 'asc'); > > > > > > $trisPossibles = array('r.numero', 'r.libelle_demande', > > > > > > 'et.numero', > > > > > > 'ctc.nom'); > > > > > > if (!in_array($this->tri, $trisPossibles)) > > > > > > { > > > > > > $this->tri = 'r.numero'; > > > > > > } > > > > > > // Test si l'ordre est valide > > > > > > if ($this->ordre != 'asc' && $this->ordre != 'desc') > > > > > > { > > > > > > $this->ordre = 'asc'; > > > > > > } > > > > > > // Construction du pager > > > > > > $pagination = MyPager::getPagination('Dossier'); > > > > > > $this->pager = new MyPager($query, $pagination); > > > > > > $this->dossiers = $this->pager->getResults(); > > > > > > } > > > > > > > If somebody has anything to provide about such things, I would be > > > > > > very thanksfull. > > > > > > -- > > > > > Gareth McCumskeyhttp://garethmccumskey.blogspot.com > > > > > twitter: @garethmcc --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---
