volume one
volume one

Reputation: 7563

Does a CF template continue to run even if the browser is closed?

Apologies if this is a blatantly newbie question, but I'm suddenly unsure of the answer.

I am running several large tasks that runs through database records with <cfloop>. It can take several hours to run.

If the CF template is 'executed' (basically its .cfm page is visited in the browser - not by a scheduled task), but the browser is closed mid-cylce, will the template continue to run on the server until its completed? Or does it abort/exit the template at the point the window is closed?

Upvotes: 2

Views: 198

Answers (1)

Alex Baban
Alex Baban

Reputation: 11702

Yes, it will continue to run. When your browser makes the request it is asking the web server (IIS, Apache, etc...) for a CF page, the web server is then asking the CF engine and the CF engine starts processing the template. Once finished processing, the CF engine sends the response to the web server which sends it to your browser. From this, you can see that the CF engine does not know that you closed the browser.

Upvotes: 3

Related Questions