Forum Moderators: phranque

Message Too Old, No Replies

.htpasswd - delete user upon logon

         

normen

7:15 pm on Jun 22, 2004 (gmt 0)

10+ Year Member



Hi,

i don't know if anyone has ever thought about this, but I need to automatically delete a user from the .htpasswd file as soon as that user accesses a file within a protected folder. The user does not use a browser to access the file but some other piece of software that establishes a http connection and performs authorization.
I've tried to work with a php script. That worked great, but the remote software could not get to the requested file.
Is there an option in the .htaccess file to "run a logon script" or something like that?

Any help will be greatly appreciated.

WhosAWhata

7:34 pm on Jun 23, 2004 (gmt 0)

10+ Year Member



i don't think apache has anything to send your username to the script, otherwise you could have php delete the right line in the file

could you switch to a totally php based login system?