I'm working on a web app that allows scientists to submit to a high performance computing cluster through a web interface. The users fill in some data about their experiment, upload some files and the web app takes care of the rest.
At the end of the computation the users need to be able to access their resultant files. They are around 1 GIG in size.
I want to allow the users to browse these files but I don't know how to do it securely. Users should not be able to browse files that are not theirs. The files are already stored in a directory outside of webroot and owned by the Apache user.
I'm working in PHP, any advice on how to implement something like this?