in reply to Keeping the script running after the Brower closes
Closing the browser does not terminate any scripts on the server. As such the server does not "know" that after sending the message to the client at the beginning of the script, no more output is to follow and even if the browser goes "away" the script keeps running until it finishes.
The browser does not inform the server to stop working on a previous request when it closes.
Your problem must therefore be somewhere else, perhaps (as already said by oxone) it is due to buffering problems or may be there is an error in your script which terminates it.
CountZero
A program should be light and agile, its subroutines connected like a string of pearls. The spirit and intent of the program should be retained throughout. There should be neither too little or too much, neither needless loops nor useless variables, neither lack of structure nor overwhelming rigidity." - The Tao of Programming, 4.1 - Geoffrey James
|
|---|