File Download protection?

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
lumisis
Forum Newbie
Posts: 2
Joined: Thu Feb 13, 2003 7:45 am

File Download protection?

Post 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
aybra
Forum Commoner
Posts: 56
Joined: Sun Nov 24, 2002 12:52 am

Post 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.
Post Reply