hi,
I am kinda new to htaccess. I am writing a user management script and just wonder how to log user when they login via the protected directory pop up dialog?
I have seen many scripts can log user ip address and more to prevent shared usernames...
If they're logging in via the browser popup dialog, I don't think you can do it, since that's automatically negotiated between the browser and the web server. The programs you've seen either use mod-perl and a variation of basic authentication to handle logging in, or they don't use .htaccess at all. Tracy Dryden
tracy@bydisn.com
Well you can determine a user's login name with the htaccess popup field from a cgi script, this simply by using the %ENV, with this you can get the enviroment vars for that "session".
e.g.
$ENV{'REMOTE_USER'}
Same goes for IP and browser etc etc etc ...
if you want a list, put this in a script:
I've posted some code somewhere in this forum that you can use for parsing out the username for a .htaccess login. Try searching this forum for REMOTE_USER. Tracy Dryden
tracy@bydisn.com
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.