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

Reply via email to