It may sound very simple:
- When a user request some file, the program should authorize him
- Then we send the file location to the browser/download manager so it
can begin to download. (something equilvalent to PHP header (“Location:
- Do something else before we stop the script.
The hardest part is the 3rd one, when we send back the header the script
will stopp too. I was thinking if we can just call another script right
before we send back the header, but there is a flaw in that algorithm