473,320 Members | 1,722 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,320 software developers and data experts.

Get Current Windows User

Hi,

Is it possible to get the current user that is logged on to the computer? I
want to use this as the basis of my validation on the site instead of asking
them to login in again. I know it could be a security issue if they keep the
computer unattended.

Thanks for the help,
Shahid
Jul 22 '05 #1
3 3117
If you turn off anonymous access in IIS, visitors will have to authenticate.
If you use integrated authentication in an intranet environment and your
users are using IE with default settings, IE will automatically pass the
login credentials to IIS without any user intervention. Yuu can then use
Request.ServerVariables("AUTH_USER") to get the username.

Ray at work

"Shahid Juma" <sh*****************@hotmail.com> wrote in message
news:ek**************@TK2MSFTNGP14.phx.gbl...
Hi,

Is it possible to get the current user that is logged on to the computer? I want to use this as the basis of my validation on the site instead of asking them to login in again. I know it could be a security issue if they keep the computer unattended.

Thanks for the help,
Shahid

Jul 22 '05 #2
Thanks,

One more question. How do I get all the users on the domain?

Thanks,
Shahid

"Ray Costanzo [MVP]" <my first name at lane 34 dot commercial> wrote in
message news:%2****************@TK2MSFTNGP10.phx.gbl...
If you turn off anonymous access in IIS, visitors will have to authenticate. If you use integrated authentication in an intranet environment and your
users are using IE with default settings, IE will automatically pass the
login credentials to IIS without any user intervention. Yuu can then use
Request.ServerVariables("AUTH_USER") to get the username.

Ray at work

"Shahid Juma" <sh*****************@hotmail.com> wrote in message
news:ek**************@TK2MSFTNGP14.phx.gbl...
Hi,

Is it possible to get the current user that is logged on to the
computer? I
want to use this as the basis of my validation on the site instead of

asking
them to login in again. I know it could be a security issue if they keep

the
computer unattended.

Thanks for the help,
Shahid


Jul 22 '05 #3
What do you mean? Just list all the usernames? Or all the users who have
sessions on your site?

Ray at work

"Shahid Juma" <sh*****************@hotmail.com> wrote in message
news:OI**************@TK2MSFTNGP14.phx.gbl...
Thanks,

One more question. How do I get all the users on the domain?

Thanks,
Shahid

"Ray Costanzo [MVP]" <my first name at lane 34 dot commercial> wrote in
message news:%2****************@TK2MSFTNGP10.phx.gbl...
If you turn off anonymous access in IIS, visitors will have to

authenticate.
If you use integrated authentication in an intranet environment and your
users are using IE with default settings, IE will automatically pass the
login credentials to IIS without any user intervention. Yuu can then use Request.ServerVariables("AUTH_USER") to get the username.

Ray at work

"Shahid Juma" <sh*****************@hotmail.com> wrote in message
news:ek**************@TK2MSFTNGP14.phx.gbl...
Hi,

Is it possible to get the current user that is logged on to the computer?
I
want to use this as the basis of my validation on the site instead of

asking
them to login in again. I know it could be a security issue if they

keep the
computer unattended.

Thanks for the help,
Shahid



Jul 22 '05 #4

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

Similar topics

3
by: Christopher Weaver | last post by:
I want to set a value in a specific field in the current row of a DataSet. This seems like the most basic thing to do but I can't find the syntax for identifying the current row. IOW, I can do...
4
by: Mark | last post by:
hey, i'm trying to get the current windows user and the groups they are in. Intergrated windows auth on and annoymous access turned off on IIS. However when trying to compile the following code...
4
by: Jamie | last post by:
I'm trying to create a HttpWebRequest object that uses the current logged in users credentials. The site is using Windows Authentication, Anonymous access is turned off. Will the HttpWebRequest...
4
by: Kristof Despiere | last post by:
Suppose you have one domain, filled with a couple of users. What needs to be done now is I need to start a windows application from a webform by pressing a button on the webform (for example). ...
4
by: Nick | last post by:
I'm developing an intranet app, and want to get the current user name for logging purposes. I've turned off anonymous access, and turned on windows authentication in the IIS config. The apps...
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...
8
by: Mark White | last post by:
Hey everyone I'm having a great deal of problems finding this information through google and yahoo, so I turn to you on this. I have a Windows app running on XP. I am able to caputre the...
4
by: Leszek | last post by:
Hello! I have my webpage (ASP) in domain (IIS 6.0). I need to make a popup with fullname of current user. How can I do this? Maybe someone have any examples? Thanks!
3
by: Lattis | last post by:
I have the following problem: User A is logged in to a windows 2000 terminal. He runs an application which runs under the credentials of a different user. If I try to see the current user...
9
by: Alex | last post by:
Get the Name and Phone Number of the Current Windows User in a .NET Application I am writing a simple .NET (C#) application. It needs to "automatic" get the Name (last, first) and phone number...
0
by: ryjfgjl | last post by:
ExcelToDatabase: batch import excel into database automatically...
1
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: Vimpel783 | last post by:
Hello! Guys, I found this code on the Internet, but I need to modify it a little. It works well, the problem is this: Data is sent from only one cell, in this case B5, but it is necessary that data...
0
by: jfyes | last post by:
As a hardware engineer, after seeing that CEIWEI recently released a new tool for Modbus RTU Over TCP/UDP filtering and monitoring, I actively went to its official website to take a look. It turned...
1
by: PapaRatzi | last post by:
Hello, I am teaching myself MS Access forms design and Visual Basic. I've created a table to capture a list of Top 30 singles and forms to capture new entries. The final step is a form (unbound)...
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...
1
by: Defcon1945 | last post by:
I'm trying to learn Python using Pycharm but import shutil doesn't work
1
by: Shællîpôpï 09 | last post by:
If u are using a keypad phone, how do u turn on JavaScript, to access features like WhatsApp, Facebook, Instagram....
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...

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.