I am working on an email system that I must connect to the CMS for the company. I am looking for a way to get the email sender script to run in the background, when the administrator can move around or even close browsers.
I found a PHP function with the name ignore_user_abort()that is required for the page to work, even if it has a timeout.
Now I have three solutions for "running the script":
I could use iframe
I could use the Ajax call that I previously set to timeout very early. For example: using jQuery framework :$.ajaxSetup({ timeout: 1000 });
I could use the cron job, but I would like to avoid this solution, as they are "virtual" and unstable on this server.
Are there any other solutions? I really don't like the iframe solution, but I already use them with the Ajax script loader.
I do not want the administrator to hit F5 and start the second instance.
Company users were only asked to log into the CMS using Firefox. Thanks you
source
share