Hello!
I have a site hwere I use logins via sessions. I need to post file donwloads, and these downloads to be available only for logged in users.
My idea, please tell me if it is ok in what server-load is concerned: all files will be stored in a directory, where access via web will be restricte (.htaccess deny all). When the user will open download.php with a parameter and the script will load file contents from the protected directory using fopen and settings the corresponding headers.
Is this ok, regarding speed and server load? Any other ideas?
Thanks!