I found a related ticket, but the conclusion is clean ! http://trac.symfony-project.org/ticket/1257
On Thu, Jan 22, 2009 at 2:57 PM, Thomas Rabaix <[email protected]> wrote: > Hello, > > I had a proplem with session concurrency (PDOSessionStorage) so I check > symfony code (sf1.2). I found out something weird : > > The sfConfigFactoryHandler always defined the auto_shutdown as false. So by > default the sfUser::construct does not register the > register_shutdown_function. Look fine for me. > > Now the sfContext::shutdown called the sfUser::shutdown method too, so > > - if the (sfUser) auto_shutdown is defined as false, the context method > call the user shutdown method > - if the (sfUser) auto_shutdown is defined as true, the context method > call the user shutdown method _BUT_ the method is called twice as the > sfUser::construct also register the callback method. > > The shutdown method should be called only once, and maybe not at the end of > the request in order to limit session concurrency. > > Any thoughts ? > > -- > Thomas Rabaix > Internet Consultant > -- Thomas Rabaix Internet Consultant --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "symfony developers" 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-devs?hl=en -~----------~----~----~----~------~----~------~--~---
