Home All Groups Group Topic Archive Search About

Currentuser that send a form



Author
20 Mar 2006 3:11 PM
Dax
Hi,
how can Identify a domain user that send a form made with ASP.
I have see that exist a variable called currentuser, but what does it
mean?

Thanks in advance,
Dax

Author
20 Mar 2006 3:17 PM
Slim
"Dax" <praecla***@libero.it> wrote in message
news:1142867517.363410.164140@i40g2000cwc.googlegroups.com...
> Hi,
> how can Identify a domain user that send a form made with ASP.
> I have see that exist a variable called currentuser, but what does it
> mean?
>

try

Request.ServerVariables("AUTH_USER")


Show quote
> Thanks in advance,
> Dax
>
Author
20 Mar 2006 3:52 PM
Dax
If I create a program where in it it's written:
dim user
user=Request.ServerVariables("AUTH_USER")
Response.Write(user)
I print the correct name or I must written something else?
Thanks for your interesting,

Dax
Author
20 Mar 2006 4:01 PM
Bob Barrows [MVP]
Dax wrote:
> If I create a program where in it it's written:
> dim user
> user=Request.ServerVariables("AUTH_USER")
> Response.Write(user)
> I print the correct name or I must written something else?
> Thanks for your interesting,
>
> Dax

I generally use "LOGON_USER" instead of "AUTH_USER"
This ServerVariable will only contain a value if Anonymous access is
disabled for your website.

--
Microsoft MVP -- ASP/ASP.NET
Please reply to the newsgroup. The email account listed in my From
header is my spam trap, so I don't check it very often. You will get a
quicker response by posting to the newsgroup.
Author
21 Mar 2006 7:23 AM
Dax
Yes but how can I "put" my name inside that variable (LOGON_USER)? I
must click on a logon button?

Thanks in advance
Author
21 Mar 2006 11:46 AM
Bob Barrows [MVP]
Dax wrote:
> Yes but how can I "put" my name inside that variable (LOGON_USER)? I
> must click on a logon button?
>
Please quote the message to which you are replying so I don't have to go
back and read the previous messages in the thread.

Anyways, that variable is automatically populated if you have Anonymous
access turned off on your site. There is no need for you to do anything else
to put anything into it.

--
Microsoft MVP - ASP/ASP.NET
Please reply to the newsgroup. This email account is my spam trap so I
don't check it very often. If you must reply off-line, then remove the
"NO SPAM"

AddThis Social Bookmark Button