469,306 Members | 1,850 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 469,306 developers. It's quick & easy.

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 3031
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 discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

3 posts views Thread by Christopher Weaver | last post: by
4 posts views Thread by Mark | last post: by
4 posts views Thread by Nick | last post: by
6 posts views Thread by John Dalberg | last post: by
8 posts views Thread by Mark White | last post: by
4 posts views Thread by Leszek | last post: by
3 posts views Thread by Lattis | last post: by
1 post views Thread by CARIGAR | last post: by
reply views Thread by harlem98 | last post: by
1 post views Thread by Geralt96 | last post: by
reply views Thread by harlem98 | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.