#1
  1. Contributing User
    ASP Skiller (1500 - 1999 posts)

    Join Date
    Aug 2008
    Location
    USA
    Posts
    1,595
    Rep Power
    343

    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

    Jquery Shake Effect ,
    Andriod KitKat


    Thank You,
    KiranK
  2. #2
  3. No Profile Picture
    Moderator
    ASP Mastermind (5000+ posts)

    Join Date
    Feb 2004
    Location
    Reston, VA
    Posts
    13,248
    Rep Power
    1907
    Originally Posted by markWilson
    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
  4. #3
  5. Contributing User
    ASP Skiller (1500 - 1999 posts)

    Join Date
    Aug 2008
    Location
    USA
    Posts
    1,595
    Rep Power
    343
    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.

Similar Threads

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

IMN logo majestic logo threadwatch logo seochat tools logo