I've got a bunch of PDF files that contain sensitive data, in a previous thread I asked how to protect these files from unauthorized access, but still allowing access to authorized users. The solution offered was to use a .htaccess file.
So I've done some research into it, and added a .htaccess file to the protected directory. Now when an authorized user logs into my site through my PHP/MySQL log-in page, they get to a directory of PDFs and when they select a PDF to download, they are prompted with a browser-driven log-in box.
So I've been looking for a solution to prevent the need for a double log-in. So far the solutions that I've found are:
By logging in using a plain text password, as shown on this site. Like http://username:password@www.website.com/directory/
I've been reading about a script that I think addresses this problem, called pajamas.
So my question is: How do I avoid the double log-in, and still keep my data safe? The first link says that there are scripts to avoid the double log-in, and I'm assuming that "pajamas" is one of those scripts. Does anyone know of any others? or is there a better way altogether?
If it helps, I'm on a Unix, Apache web-server, using a hosting company, so I don't have the ability to install any extensions. But they may already have something installed. I just don't know what to look for.
Thanks for all your help.