Image

Imagefreetaco wrote in Imagephp

get username from .htaccess login?

Is it possible to retrieve the username when a user logs in to an app through an .htaccess login page?

I have a directory protected by .htaccess and .htpasswd, and would like to be able to capture the username when someone logs in. I want to print it like, "Hello, Sharon!" in the app itself.

Any ideas on how to do this?