Since you already using a detached task to run the batch job, if it's not too 
much work and the result of the batch job is not a requirement for the 
response, can you just pass your variables to the batch job?

Steve Swift <[EMAIL PROTECTED]> wrote:  Can a CGI script close the session with 
the browser before it exits?

I tried closing STDOUT and STDERR in the hope that Apache might notice, and 
clean up the session, but the browser remained waiting.

I have a CGI script that send its page to the browser then has a "batch" job to 
do, which takes several minutes. 
At the moment I'm handling it by creating a detached task to run the batch 
portion but since the batch process requires access to the variables that built 
the HTML page it would be much simpler if I could manage it in one run of the 
CGI script. 

-- 
Steve Swift
http://www.swiftys.org.uk 

 
---------------------------------
Access over 1 million songs - Yahoo! Music Unlimited.

Reply via email to