473,385 Members | 1,898 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,385 software developers and data experts.

Servervariables different in ASP.NET

I have a filter (c/c++) on a site that handles authentication. A user
logs in using a username and password, the ISAPI filter looks up the
username in a database and then maps the username to another username
that is equal for all users (IUSR_SOMEUSER).

Later I need the individual username that the user has entered in the
first place. In asp I can get it from Servervariables("REMOTE_USER")
but in asp.net Servervariables("REMOTE_USER") contains the new
username. Why isn't the servervariables the same in .net??

If I log in with username mv I get

in asp:
REMOTE_USER = mv
AUTH_USER = IUSR_SOMEUSER

but in asp.net:
REMOTE_USER = COMPUTER\IUSR_SOMEUSER
AUTH_USER = IUSR_SOMEUSER
Nov 17 '05 #1
0 1196

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

Similar topics

2
by: W. Loo | last post by:
Hi, I've got a question regarding the usage of Request.ServerVariables. I'm not sure this is really a ASP question, so redirects to a more appropriate newsgroup are welcome. I have a variable...
3
by: Laura | last post by:
At two different points in my website I have used a file include to display a list of hyperlinks on a page rather than saving the list of links in two different places. To determine the paths...
3
by: crjunk | last post by:
I have the following url: https://test.mywebsite.com/secure/programs/test.asp?TOPIC_ID=21 How can I get the value "secure/programs/test.asp?TOPIC_ID=21" I can't use...
4
by: Martin | last post by:
Hi, From Page1.asp, I use "Server.transfer" to "REDIRECT" to another asp page (page2.asp), in page2.asp I use Request.ServerVariables("URL") and Request.ServerVariables("REFERER") to get the...
2
by: TS | last post by:
I seem to remember reading somewhere that accessing this collection is expensive and you should avoid it if possible. Are there any alternatives to the following: Request.ServerVariables; ...
0
by: Enzo | last post by:
Hello, I am trying to add items to the ServerVariables Collection for some custom processing. In the past this needed to be done with an ISAPI filter. I am told now that I can do this with a...
1
by: dmjames | last post by:
For one of our machines, Request.ServerVariables("LOGON_USER") is returning the wrong value. Person A is logged into the machine (I watched him log in), but when he retrieves an aspx page...
1
by: preet | last post by:
I posted this elsewhere ; probably the wrong place so i am posting this again I am using the following script: hrefer=Request.Servervariables("HTTP_REFERER")...
1
by: Ryan | last post by:
I am trying to figure out why I am trying to use the result of Request.ServerVariables("LOGON_USER") in a query in my aspx application. I want to use the server variable. When I check the...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...

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.