Hi, I'm looking for the following (It is just for teaching myself, so any comments are welcome)
Let's say I have a database of users and md5 passwords (mysql)
What is the best way to provide a SECURE login for this? I don't want to use sessions for this, as the pages under the SECURE directory are just plain HTML files or say file downloads. I'm thinking that using the .htaccess method is best...well, OK, I want to know: Is it possible to somehow....just like .htaccess protect the directory, but let it be dynamic? So that every time directory is requested, the usual Browser username/password box pops up, but instead of a flat file, it pulls info from database?
Or, even a script that will pull info from database, and store in the .htpasswd file?
Thanks for reading,
Kevin