Strangely enough, I find myself doing actual work-type programming
February 14, 2010 1:26 PM Subscribe
What happens to my php script if the user exits the browser before it's done?
posted by Dr Dracator to Computers & Internet (9 answers total) 2 users marked this as a favorite
I have a php form served by apache that updates some records in a mysql database. If the database grows, it is conceivable that the update might take a significant amount of time to finish. What happens if the user exits their browser before the update is complete? Will apache kill the script or is it guaranteed to run to the end?
Does it matter if I submit the form as a straight POST request or via the prototype.js AJAX framework?
Also, what happens if the browser times out while waiting for the page to load?