Wrox Programmer Forums
|
ASP.NET 1.1 As of 10/6/2005, this forum is locked as part of the reorganization described here: http://p2p.wrox.com/topic.asp?TOPIC_ID=35394. No posts have been deleted. Open ongoing discussions from the last week have been moved to either ASP.NET 1.0 and 1.1 Beginners http://p2p.wrox.com/asp-net-1-0-1-1-basics-60/ or ASP.NET 1.0 and 1.1 Professional. http://p2p.wrox.com/forum.asp?FORUM_ID=50. See my sticky post inside for more.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the ASP.NET 1.1 section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old May 24th, 2005, 06:46 AM
Friend of Wrox
 
Join Date: Jun 2004
Posts: 449
Thanks: 0
Thanked 1 Time in 1 Post
Send a message via MSN to r_ganesh76
Default Request.ServerVariables

Hi Experts,

In my ASP.Net application, I am using windows integrated authentication. I get a login dialog box when trying to access the page in which I enter the correct LDAP username and password. In one of my pages, I want to access the user who logged into the application.

I use the following code to get the username

Code:
string UserID = Request.ServerVariables["AUTH_USER"].ToString();
if (UserID.Trim() == "")
    UserID = Request.ServerVariables["LOGON_USER"].ToString();
so I use AUTH_USER or LOGON_USER whichever is available. I used this method because, in one of my test servers the 1st one was not available.

Now comming to the actual problem, I am not getting either of these values in the production server. Am I missing out something?? Or is there a better way of doing the same??

Please give me your valid suggestions



Regards
Ganesh
__________________
Regards
Ganesh
http://ganeshprof.blogspot.com
Find your solution here...





Similar Threads
Thread Thread Starter Forum Replies Last Post
request forwarging & request redirection hafizmuhammadmushtaq Servlets 2 April 24th, 2008 12:42 AM
<%=Request.ServerVariables("HTTP_REFERER")%> t400 Classic ASP Basics 0 June 30th, 2006 07:26 AM
Request.ServerVariables HTTP_REFERRER question savoym Classic ASP Basics 6 May 25th, 2004 02:05 PM
request.querystring() , request.form() alyeng2000 ASP.NET 1.0 and 1.1 Basics 1 December 30th, 2003 12:07 AM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.