CLM wrote:
PHP variables ---> .htaccess session ---> accepted session for access to files in protected directory
I can find nothing to force this "accepted session" without having to type into a server provided .htaccess login prompt. Seems like there should be a way to do it.
There is no way.
If you want them to be able to access the files you could set up a fsockopen or fopen or curl or snoopy file that would act as an intermediary between the protected files and a logged in user. To do that you would have them request curl.php?file=the_file_to_download and in curl.php you would only allow php session logged in users to use the curl.php file. Then using snoopy, curl, fsockopen, fopen, etc.. you would make the request include the correct base64 encoded username/password to access the protected files. So the users would never actually request the protected files directly, they will go through the curl.php file.
Or you could easily set a special cookie for users that have successfully logged into php and then using mod_rewrite you could only allow access to the files for users with that special cookie.
There are a few ways to do this but all of them cover advanced methodologies and topics.