Beefy Boxes and Bandwidth Generously Provided by pair Networks
XP is just a number
 
PerlMonks  

Re: get user name

by redsquirrel (Hermit)
on Jan 21, 2002 at 19:53 UTC ( [id://140412]=note: print w/replies, xml ) Need Help??


in reply to get user name

You could try $ENV{REMOTE_USER}. Not sure how generic that is, but it works on our Solaris boxes.

--Dave

Replies are listed 'Best First'.
Re: Re: get user name
by vagnerr (Prior) on Jan 21, 2002 at 20:11 UTC
    $ENV{REMOTE_USER} will work as long as some sort of basic authentication has been performed (IE those times when a little box pops up on the users browser asking them for a user and password). For example if you are restricting part of your site with .htpassword files or using AuthCookie etc.

    However if the area of the site is public or a more complex authentication is in place (ie nice cute forms with submit buttons) then $ENV{REMOTE_USER} will remain undefined.

    ---If it doesn't fit use a bigger hammer

      Thanks for the helpful explanation vagnerr. The tidbits of useful knowledge that come from posts like yours are one of the great values that PM provides.

      ++ to you!
      --Dave

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://140412]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others wandering the Monastery: (6)
As of 2024-04-19 10:58 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found