At 9:32 PM -0700 7/18/06, jekillen wrote: >Hi: >I have a web application that creates files and directories to save info >for a user. If the user decides to link to another page or site altogether >I want to run a script that will clean up after him or her but won't >interfere with where they are going. It will eventually expand >to asking the user if he or she wants to save the info for a return >visit. If they don't want to save it has to clean up after them >and if they do it goes through the process of tagging and >saving the info on the server. >My strategy is to run a spontaneous form submission with the >body onunload event. Then run the script and exit. I seem to >remember a way to force a script to run and I've seen that >in a site that I visit occasionally. Even if I quit the browser >it still manages to delay the exit of the browser. But I don't >remember whether it was one of my books on php or the php >manual that this is in. >Can someone point me in the right direction? >Thanks in advance: >JK JK: I got something to work. It may be an overkill, or perhaps someone has a simpler solution, but I took a bit of ajax and mixed it with an onUnload event and it ran a php app after a browser exited my site. If you want to see the code, contact me privately and I'll provide. hth's tedd -- ------------------------------------------------------------------------------------ http://sperling.com http://ancientstones.com http://earthstones.com -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php