I had to write something similar back before I knew about prototype (running an import of a csv in a web app) and wow was it a hassle. I had all sorts of problems with no-more-than-2 simultaneous connections (needed one for the long running process, one for the updates, and one for the original page request which was keep-alive for another reason)... ended up using ip address *and* domain name, but then my session cookie wouldn't share :) It's a great technique though, and i'd use it again for a long running process.
Gareth On 3/9/07, Richard Quadling <[EMAIL PROTECTED]> wrote: > > > Hi. > > I've just been learning how to get client side page updated with > server side progress and to allow the process to be stopped by the > client. > > Client runs a periodic updater to ask the server what progress is > being made on its task. > > Client starts a server process which takes a LONG time. > Server side process updates the session storage with its progress. > Server side process watch the session for an abort message and dies if > it see one. > > If the user aborts the process (pressing escape for example), the > client starts a server process which sets the abort flag in the > session. > > This methodology is working just great for me. > > So, I would just like to say THANK YOU for all your hard work. My > pages are so much more interesting now with realtime updates of the > statistics which are being generated on the server by various > processes. > > abort.php, process.php and progess.php - 3 simple scripts which all > talk to each other via the session. > > I just LOVE it and so do the users here. > > THANK YOU!!!! > > Regards, > > Richard. > > -- > ----- > Richard Quadling > Zend Certified Engineer : http://zend.com/zce.php?c=ZEND002498&r=213474731 > "Standing on the shoulders of some very clever giants!" > > > > --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Prototype: Core" 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/prototype-core?hl=en -~----------~----~----~----~------~----~------~--~---
