Currentuser that send a form

D

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
 
S

Slim

Dax said:
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")


Thanks in advance,
Dax
 
D

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
 
B

Bob Barrows [MVP]

Dax said:
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.
 
D

Dax

Yes but how can I "put" my name inside that variable (LOGON_USER)? I
must click on a logon button?

Thanks in advance
 
B

Bob Barrows [MVP]

Dax said:
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.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
474,143
Messages
2,570,822
Members
47,368
Latest member
michaelsmithh

Latest Threads

Top