Notices

Great community. Great ideas.

Welcome to ASP/Free, a community dedicated to helping beginners and professionals alike in improving their knowledge of Microsoft's development and administration technologies. Sign up today to gain access to the combined insight of tens of thousands of members.

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
    Join Date
    Aug 2008
    Posts
    1,556
    Rep Power
    342

    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 Give Rep button (bottom side on this reply ) and agree

    Andriod KitKat
    Jquery Shake Effect ,

    Thank You,
    KiranK

  2. #2
    jmurrayhead is offline Moderator
    Join Date
    Feb 2004
    Location
    Reston, VA
    Posts
    13,248
    Rep Power
    1907
    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
    Join Date
    Aug 2008
    Posts
    1,556
    Rep Power
    342
    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