I was wondering is there a way to password protect a directory. Here is my problem. My site require a login using php and mysql. This works, however I want to protect a certain directory that only lets a user who login previously to download files from it. I can keep non-user from viewing any other pages but they can still download a file via direct link. I want to stop this. I know I can use .htaccess files but that would require another login from the user. Is there a way to combine the two login into one? Thanks for your help in advance.