I'm running a test site in IIS on a Windows 7 machine.
I'm sending an ajax request to the server to run, which I know is working as I'm saving a record of this in my db.
Once I start the process running I'm wanting to be able to navigate away from the page and leave the script running.
At the moment when I start the script and select a different page from my navigation my browser appears to stop the ajax request (the script is still running server side) but doesn't allow my browser to redirect until the serverside script has finished running.
I'm using:
$.post('path_to_script',{key:val},function(data){});
In my jQuery file to call the script and in my php script I'm using:
ignore_user_abort(true);
set_time_limit(0);
As I've seen suggested in other posts on here.
Am I missing something as this is my first attempt at running a background process?