Hi, I am trying to password protect a directory of images that i have on my server. Basically i have created a form based login file that authenticates the user against a database, the form based php file uses sessions to track the users.
Right now i have the directory protected using apache .htaccess and .htpasswd for the entire directory of images.
What i want to do is if you login via the form based php file, you will not be prompted for a password from viewing any files in that protected directory. But if you just go to that directory directly you will be prompted for a password http auth style.
Is that possible? I know that it is possible to retrieve the HTTP_AUTH_USER and HTTP_AUTH_PW variables FROM the http auth password window, but is it possible to pass those variable from php to that auth password window?
Thanks