finish-output
Purpose:
Finishes the request output.
Syntax:
Description:
finish-output will flush all output and conclude the requests output to a client. Any such output afterwards will result in an error. As far as the client is concerned, all the output from the request is complete.
This statement is useful when you need to continue work after the page output is complete. For example, if the request is a long-running one, you can inform the client that the job has started, and then take any amount of time to actually complete the job, without worrying about client timeouts. The client can inquire about the job status via a different request, or be informed via email etc.
Examples:
See also: