username from htaccess/authentication
Posted on 2004-09-16
I am using htaccess/htpasswd to create a 'secure' area on my site, now can I pass somthing to a php script on login so I can tell who has logged in.
they goto the members area
they get the standard username/password dialog which they enter there details into
they then get passed to the secure area at the top it says - 'Welcome back USER
Follow what I mean? So I don't want php to handle the login or passwords or anything, just want to know if there is a way to display the name of who's loged in, and maybe even write a login file saying
USERNAME - Login date
so I can look at it and see when users have logged in.
I know it would be simpler to use php to handle everything, but I am happy with apache / htaccess/htpasswd handling that for now.