Do you have a question? Post it now! No Registration Necessary.  Now with pictures!

Threaded View
If there's a directory protected with basic authentication
(.htaccess/.htpasswd) is there a way to access the username entered at later
points. The idea would be to have a general protected area but allow some
customization based on the particular user ID that the browser carries
around during the session.

Re: Authentication

Brian Rodenborn wrote:

Quoted text here. Click to load it

The username and password are stored in $_SERVER['PHP_AUTH_USER'] and

Chris Hope - The Electric Toolbox - /

Re: Authentication

Quoted text here. Click to load it

Neither $_SERVER nor $HTTP_SERVER_VARS seems to be set at all, trying to
dump the array gives:

"Warning: Variable passed to each() is not an array or object"

Is this a setting, and is it under my control?

Site Timeline