HTML based auth for apache protected directories
Posted: Thu Nov 16, 2006 9:03 pm
Has anybody successfully used a HTML based form against a password protected directory to gain authorization to the directory? (Did I say that right?) I've read tutorials on how to use the 401 unauthorized username and password prompt. But that is not what I want.
I'm thinking I want to do something like: 1)user submits username and password through html form, 2)verify username and password against .htpasswd file 3) header redirect to apache password protected directory to gain authorization to directory without the prompt.
Does anybody know what headers need to be sent to the directory? Does anybody know of a good class to handle this?
Help plz?
I'm thinking I want to do something like: 1)user submits username and password through html form, 2)verify username and password against .htpasswd file 3) header redirect to apache password protected directory to gain authorization to directory without the prompt.
Does anybody know what headers need to be sent to the directory? Does anybody know of a good class to handle this?
Help plz?