My forum is generating a dump of confidential data which it writes to an excel file for download. I'm using some code similar to this Snitz post to hide the url to the file while causing it to auto-initiate the download once the excel file is built.
I'm stuck on how to delete the file once the download is complete or failed. I don't want this data residing on the server any longer than necessary. Any ideas on how to trigger the file delete without removing the file during the download? Thanks in advance...
* The optimist says the cup is half full. The pessimist says it's half empty. But the engineer knows the truth - the cup's design is incorrectly sized.