Hi, Just to add my two cents here, instead of closing the session in your action code, another possibility to get your prices would be to get them not one by one, but with only one Ajax request to whom you would pass the necessary ids as parameters. Your action would then be called only once and would perform only one query to the database (with the SQL query containing something like 'WHERE id IN (1, 2, 17, ...)'). And you would obviously save 11 HTTP requests that can also take time to initialize.
Cheers, nIcO On May 5, 10:55 am, ojonam <manojo10...@gmail.com> wrote: > Hi Ryan and Mark, > > thank you both for your responses. I am not specifically looking for > multithreaded behavior, so I will stick for the PHP language (and hence > Cake) for a bit more. > For now, I am using the hack in Ryan's link, and it seems to work for now. I > just call the function at the beginning of the "books/getprice" action. I > suppose that when calling another action, the session will be restarted > again, therefore not interfering with other parts of the application. Please > correct me if this is wrong. > > Cheers, > ojonam -- Our newest site for the community: CakePHP Video Tutorials http://tv.cakephp.org Check out the new CakePHP Questions site http://ask.cakephp.org and help others with their CakePHP related questions. To unsubscribe from this group, send email to cake-php+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/cake-php