| | |
how to get network login user name
Please support our ASP advertiser: PostgreSQL or MySQL? Compare and contrast the two most popular open source databases
![]() |
•
•
Join Date: Mar 2007
Posts: 11
Reputation:
Solved Threads: 0
am trying to create a web page to be used by my network users (inside my intranet)
I want to get the visitor's name of my page ( in another words to get the network login user name of the person who is visiting my web page)
i tried to use one of the following commands
Response.Write Server.HTMLEncode(Request.ServerVariables("AUTH_USER"))
Response.Write Server.HTMLEncode(Request.ServerVariables("LOGON_USER"))
it is working and now no error is appearing but am not getting any result , only blank page ,
i have read in this link that i have to disable the Anonymous Access
http://classicasp.aspfaq.com/general.../username.html
in my IIS settings
when i disabled Anonymous Access settings i was able to get the network login username but this created another side problem where "hostdll.exe" has increased and the CPU usage reached to 100%
and if i enable Anonymous Access setting there will not be any problem regarding hostdll.exe but i will not be able to get the user name ,
by the way Windows Authentication is always enabled
am using windows 2000 server with iis 5
ram 512
p-4 3000mhz
Please help me to overcome this problem..
I want to get the visitor's name of my page ( in another words to get the network login user name of the person who is visiting my web page)
i tried to use one of the following commands
Response.Write Server.HTMLEncode(Request.ServerVariables("AUTH_USER"))
Response.Write Server.HTMLEncode(Request.ServerVariables("LOGON_USER"))
it is working and now no error is appearing but am not getting any result , only blank page ,
i have read in this link that i have to disable the Anonymous Access
http://classicasp.aspfaq.com/general.../username.html
in my IIS settings
when i disabled Anonymous Access settings i was able to get the network login username but this created another side problem where "hostdll.exe" has increased and the CPU usage reached to 100%
and if i enable Anonymous Access setting there will not be any problem regarding hostdll.exe but i will not be able to get the user name ,
by the way Windows Authentication is always enabled
am using windows 2000 server with iis 5
ram 512
p-4 3000mhz
Please help me to overcome this problem..
•
•
Join Date: Feb 2007
Posts: 114
Reputation:
Solved Threads: 8
Bit of an odd one that, but here is one thing you can try.
1. Create one sub directory (call it secure or something)
2. Set just that directory to not use anonymous access
3. Add a file to this directory that sets Session("UserName") = Request.ServerVariables("LOGON_USER") and then returns the user to the referring page
4. On every page where the username is required check the session variable to see if it is populated with the user name.
5. If it is empty then send the user to the secure directory to collect the username.
6. Note that if a page recieves form input this will not work unless you add the username to the initial form and collect it that way.
I'm not certain this will fix your memory issue (or what's causing them in the first place), but it doen't take too long to implement on most setups
Regards
D
1. Create one sub directory (call it secure or something)
2. Set just that directory to not use anonymous access
3. Add a file to this directory that sets Session("UserName") = Request.ServerVariables("LOGON_USER") and then returns the user to the referring page
4. On every page where the username is required check the session variable to see if it is populated with the user name.
5. If it is empty then send the user to the secure directory to collect the username.
6. Note that if a page recieves form input this will not work unless you add the username to the initial form and collect it that way.
I'm not certain this will fix your memory issue (or what's causing them in the first place), but it doen't take too long to implement on most setups
Regards
D
![]() |
Similar Threads
- External Hard Drive On A Network (Networking Hardware Configuration)
- how to get network login user name (ASP.NET)
- network login problem (Windows NT / 2000 / XP)
- Problem in IIS when login Power User (Networking Hardware Configuration)
- How to extract user network login name with vbscript? (Visual Basic 4 / 5 / 6)
Other Threads in the ASP Forum
- Previous Thread: Using two dropdown forms in an ASP page
- Next Thread: problem for a simple asp.net query
Views: 7130 | Replies: 1
| Thread Tools | Search this Thread |
Tag cloud for ASP
archive asp asp.net aspandmssqlserver2005 aspandmssqlserver2005connection aspconnection calendar changeable connection current database databaseconnection diagnostics dreamweaver excel fso html iis microsoft msmsql mssql2005 mssqlserver2005 mssqlserver2005andasp mssqlserverandasp opentextfile query record searchbox selectoption server single specfic sqlserver sqlserverconnection toolkit update web webserver windows7





