Page 1 of 1

File Download protection?

Posted: Thu Feb 13, 2003 7:45 am
by lumisis
How can one authorize a user to download a file in a protected directory or folder. Is there a way that I can auto generate an authorization that expires within 24 hours. Should I simply use a cookie that expires in 24 hours. Is there a better way in PHP?
Thanks

Posted: Thu Feb 13, 2003 9:52 am
by aybra
You could use a database ran folder protection script with a field in the database equal to the time of the exporation then say if user name logs on after X time exit() before the folder is displayed.... not sure on any pre made scripts but I'm assuming this would work.