I have a script that occasionally needs to do some time-consuming (15s) background processing, but other times it is a simple redirect. The redirect target is known early on in the script’s execution. Is it possible to, once the redirect URL is known, send the redirect HTML to the user agent and close the HTTP response, but continue processing the script?
I have a script that occasionally needs to do some time-consuming (15s) background processing,
Share
You could solve this by executing a program (BAT, EXE, etc) asynchronously from the ASP code.
Wshell.Runlets you run stuff async. So fire away your timeconsuming tasks without worrying about script timeouts! Really great.