473,507 Members | 8,054 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

in intranet, How can I get the userID using ASP?

Kam
within the intranet, all user are required to login.
How can I get the User ID and Domain in ASP page?
Sep 3 '06 #1
4 3695
Request.ServerVariables("LOGON_USER")

"Kam" <Ka*@discussions.microsoft.comwrote in message
news:D5**********************************@microsof t.com...
within the intranet, all user are required to login.
How can I get the User ID and Domain in ASP page?

Sep 3 '06 #2
Kam
I had a problem in using it.
I setup up the IIS server with Authentication Methods = Integrated Windows
authentication.

when I use Request.ServerVariables("LOGON_USER"), the result is equal to "
"
The following is my code.
<HTML>
<BODY>
You are <%=Request.ServerVariables("LOGON_USER")%>
</BODY>
</HTML>

How can I fix it? or what should I do before hand?

"Slim" wrote:
Request.ServerVariables("LOGON_USER")

"Kam" <Ka*@discussions.microsoft.comwrote in message
news:D5**********************************@microsof t.com...
within the intranet, all user are required to login.
How can I get the User ID and Domain in ASP page?


Sep 3 '06 #3

"Kam" <Ka*@discussions.microsoft.comwrote in message
news:D5**********************************@microsof t.com...
within the intranet, all user are required to login.
How can I get the User ID and Domain in ASP page?
What do you use to perform the login?
Is anonymous access enabled?
Are you using window intergrated authentication?

Sep 4 '06 #4
Kam wrote:
I had a problem in using it.
I setup up the IIS server with Authentication Methods = Integrated
Windows authentication.

when I use Request.ServerVariables("LOGON_USER"), the result is equal
to " "
This usually means that you forgot to uncheck the Anonymous access checkbox.
Anonymous needs to be disabled in order for this to work.
--
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"
Sep 4 '06 #5

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

0
1474
by: Chad A. Beckner | last post by:
I am starting to work on implementing ASP.NET (using VS.NET Dev 2003) into our current ASP 3.0 intranet setup. We have several (say 15 - 20) "applications" that are run within our intranet, which...
0
1463
by: Earl Teigrob | last post by:
I have PW/UserID info as follows and would like to use xpath to find if a userid and pw exists within the xml file. What Xpath query statement do I need and what query command do I need? <users>...
4
1515
by: The Eeediot | last post by:
Hello, folks! I am trying to design a login script / page for a set of administrative functions on my company's Intranet. I need something that is reasonably secure and I've been trying to rack...
5
2792
by: Martin Heuckeroth | last post by:
Hi We are working on a webservice application and are having some problems with the cookies and/or sessions. We have them working on our intranet but then its not working on the internet. We...
1
982
by: manas | last post by:
hi, I have two intranet applications ... i need to authenticate two intranet applications using a single sign-on...how can i do that?? Thanks Mahesh Manas
4
1637
by: sjohnson1984 | last post by:
Hello all, I have a form which is generated using a database query - the recordset is filled with agent details, login time and the like, and there are as many rows in the table as records in the...
3
3126
by: james | last post by:
WATYF <WATYF1@gmail.comwrote in news:eb43eb6a-afaa-4e39-ac0b-850afdb6d1e4@r66g2000hsg.googlegroups.com: It gets complicated. First, a reference:...
2
3915
by: ThatsIT.net.au | last post by:
I am using Forms Authentication but I want to keep more info on user than forms authentication keeps. I thought of 2 ways of doing this 1. To have a linked table holding other data, but for this I...
4
1970
by: Barbiturico76 | last post by:
Hi guys, anybody knows if it is possible to generate a <div id="myMap" style="width: 400; height:300; left: 0px; top: 0px;" /> inside your intranet site, to represent a programmatically...
0
7314
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
7372
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
7482
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
5623
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
1
5041
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...
0
4702
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and...
0
3191
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The...
0
3179
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
758
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.