Thread: curent logon user hostname and userid

Results 1 to 3 of 3
Share This Thread →
  1. #1
    markWilson's Avatar
    markWilson is offline Contributing User ASP Free Beginner (1000 - 1499 posts)
    Join Date
    Aug 2008
    Posts
    1,453
    Rep Power
    341

    curent logon user hostname and userid

    Hi,

    is there any alternate way for this request object where i can get the current logon user name hostname and userid for ex ("MY_HostName\bobuser")
    Request.ServerVariables[Constants.LOGON_USER]

    Request object is not working on my wcf project.
    if you found this post is useful click * button (bottom side on this reply ) and agree

    Jquery Shake Effect ,
    JQUERY on Blogger

    Thank You,
    KiranK

  2. #2
    jmurrayhead is offline Moderator ASP Free God (5000+ posts)
    Join Date
    Feb 2004
    Location
    Reston, VA
    Posts
    13,251
    Rep Power
    1906
    Quote Originally Posted by markWilson View Post
    Hi,

    is there any alternate way for this request object where i can get the current logon user name hostname and userid for ex ("MY_HostName\bobuser")
    Request.ServerVariables[Constants.LOGON_USER]

    Request object is not working on my wcf project.

    Have you tried:
    Code:
    Thread.CurrentPrincipal.Identity
    jmurrayhead

  3. #3
    markWilson's Avatar
    markWilson is offline Contributing User ASP Free Beginner (1000 - 1499 posts)
    Join Date
    Aug 2008
    Posts
    1,453
    Rep Power
    341
    Hi,

    thank you for response. i have try the thread object identity but its not working
    even i have try the
    Code:
    Thread.CurrentPrincipal.Identity.Name
    but output is null . plz suggest me something else.

Share This Thread →

Become Part of This Conversation

Join NowFor Free!

Similar Threads

  1. Replies: 3
    Last Post: August 23rd, 2012, 05:59 AM

ASP Free Advertisers and Affiliates