I need to write some sort of downloading system, I have the login and encryption complete. But the downloading of the file is where I have hit a wall. There can be no javascript, just in case the user has it off.

I need the system to redirect the user to a file for download, which I have accomplished, but then I need the rest of the scripts on the page to complete.

Is there a way to have the file downloaded and then pass control back the script so that it can remove the file and other various clean up?

Thanks