473,397 Members | 2,099 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,397 software developers and data experts.

Logged in user?

I need some asp code that can give me the user that is logged on to the PC,
can anyone help?

Regards Betina
Jul 19 '05 #1
7 6269
Request.Servervariables("LOGON_USER")

Meindert, MCP

"Betina Y Andersen" <by*@egdatainform.dk> wrote in message
news:#p*************@TK2MSFTNGP09.phx.gbl...
I need some asp code that can give me the user that is logged on to the PC, can anyone help?

Regards Betina

Jul 19 '05 #2
Hi Meindert

I cannot use that because it is empty :-(

Regards Betina

"PB4FUN" <th*********@doesnot.exist> skrev i en meddelelse
news:ur**************@TK2MSFTNGP10.phx.gbl...
Request.Servervariables("LOGON_USER")

Meindert, MCP

"Betina Y Andersen" <by*@egdatainform.dk> wrote in message
news:#p*************@TK2MSFTNGP09.phx.gbl...
I need some asp code that can give me the user that is logged on to the

PC,
can anyone help?

Regards Betina


Jul 19 '05 #3
Sometimes it is empty, but not allways.
But I have seen some entries in the results that were not empty.
(I stored them all in a DB)

It might have been this only works in a LAN.

Meindert, MCP
Hi Meindert

I cannot use that because it is empty :-(

Regards Betina

"PB4FUN" <th*********@doesnot.exist> skrev i en meddelelse
news:ur**************@TK2MSFTNGP10.phx.gbl...
Request.Servervariables("LOGON_USER")

Meindert, MCP

"Betina Y Andersen" <by*@egdatainform.dk> wrote in message
news:#p*************@TK2MSFTNGP09.phx.gbl...
I need some asp code that can give me the user that is logged on to
the PC,
can anyone help?

Regards Betina



Jul 19 '05 #4
If your IIS is set to use Basic Authentication or Windows Authentication
then LOGON_USER is populated.

Clearly, this will only work (practically) in an enclosed environment--such
as an intranet.

"PB4FUN" <th*********@doesnot.exist> wrote in message
news:ez**************@TK2MSFTNGP10.phx.gbl...
Sometimes it is empty, but not allways.
But I have seen some entries in the results that were not empty.
(I stored them all in a DB)

It might have been this only works in a LAN.

Meindert, MCP
Hi Meindert

I cannot use that because it is empty :-(

Regards Betina

"PB4FUN" <th*********@doesnot.exist> skrev i en meddelelse
news:ur**************@TK2MSFTNGP10.phx.gbl...
Request.Servervariables("LOGON_USER")

Meindert, MCP

"Betina Y Andersen" <by*@egdatainform.dk> wrote in message
news:#p*************@TK2MSFTNGP09.phx.gbl...
> I need some asp code that can give me the user that is logged on to the PC,
> can anyone help?
>
> Regards Betina
>
>



Jul 19 '05 #5
Tom B wrote:
If your IIS is set to use Basic Authentication or Windows
Authentication then LOGON_USER is populated.

But only if Anonymous is turned off.

Bob Barrows
Jul 19 '05 #6
I do not have the ability to control my users IIS, unfortunately so therefor
I cannot use the servervariables.

regards Betina

"Bob Barrows" <re******@NOyahoo.SPAMcom> skrev i en meddelelse
news:eC**************@TK2MSFTNGP09.phx.gbl...
Tom B wrote:
If your IIS is set to use Basic Authentication or Windows
Authentication then LOGON_USER is populated.

But only if Anonymous is turned off.

Bob Barrows

Jul 19 '05 #7
Then you are stuck asking them for that information.
"Betina Y Andersen" <by*@egdatainform.dk> wrote in message
news:ek**************@TK2MSFTNGP11.phx.gbl...
I do not have the ability to control my users IIS, unfortunately so therefor I cannot use the servervariables.

regards Betina

"Bob Barrows" <re******@NOyahoo.SPAMcom> skrev i en meddelelse
news:eC**************@TK2MSFTNGP09.phx.gbl...
Tom B wrote:
If your IIS is set to use Basic Authentication or Windows
Authentication then LOGON_USER is populated.

But only if Anonymous is turned off.

Bob Barrows


Jul 19 '05 #8

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

Similar topics

15
by: Joshua Beall | last post by:
Hi All, What is the best way to use a cookie to remember a logged in user? Would you store the username and password in two separate cookies? Should the password be plain text? Hashed? Not...
0
by: John Whitmer | last post by:
I am trying to put together a web page to show remote users which PC's are available for RDP so they can use. The page work's fine except for when the goes to the pc to pull the info on if anybody...
8
by: Vince Varallo | last post by:
Hello All, I would like to display all logged on users on a web page. I store each user's name in a session varible, but I don't seem to be able to loop through a sessions collection to view...
6
by: John Dalberg | last post by:
I want to automate the process of logging into an intranet. I want to pull out the username of the Windows user logged into the machine running the browser and use the username in my app. How can I...
3
by: Alan Silver | last post by:
Hello, I have some pages that are protected by forms authentication, and am adding code to the global.asax so that if someone tries to load (say) /order83.aspx, if they are logged in, it will...
40
by: Jeff | last post by:
I have a system on a network and want to determine if anyone is currently connected to the back-end files. An interesting twist is that I have noticed that some users can be connected (have the...
4
by: Jarod_24 | last post by:
How do a windows-service detect whether a user is logged or not on a computer? So far i've found nothing in the windows api or any code examples that will allow me to figure this out. The...
1
by: pcloches | last post by:
I'm having a very difficult time with some of our new pages. We've moved to a web farm, and it seems in spurts it will come where parts of my page think the user is logged in, and parts think the...
15
by: paul814 | last post by:
Is it possible to display the logged in user that is accessing the form, in a textbox? so say I have txtname I want to display the username of the person that is logged in to the PC in that...
2
by: Keith G Hicks | last post by:
asp.net 2.0 I have set my web.config as follows: <forms timeout="30"/(I know that's the default but I may chang it so the line's in there) I also have a few cookies I'm setting on my login...
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: 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...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
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
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
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...

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.