How can I get the current logged user information

Discussion in 'ASP .Net Security' started by Shaminda Illangantilaka, Jan 4, 2006.

  1. How can I get the current logged user information using ASP.NET
     
    Shaminda Illangantilaka, Jan 4, 2006
    #1
    1. Advertising

  2. ASP.NET represents the current authenticated user via the User property on
    the HttpContext or Page class.

    Joe K.

    "Shaminda Illangantilaka" <> wrote in message
    news:...
    > How can I get the current logged user information using ASP.NET
    >
    >
    >
     
    Joe Kaplan \(MVP - ADSI\), Jan 4, 2006
    #2
    1. Advertising

  3. As Joe adviced use:-
    Shaminda use
    User.Identity.Name
    Or Request.ServerVariables("LOGON_USER")
    Hope that helps
    Patrick

    "Joe Kaplan (MVP - ADSI)" <> wrote
    in message news:...
    > ASP.NET represents the current authenticated user via the User property on
    > the HttpContext or Page class.
    >
    > Joe K.
    >
    > "Shaminda Illangantilaka" <> wrote in message
    > news:...
    > > How can I get the current logged user information using ASP.NET
    > >
    > >
    > >

    >
    >
     
    Patrick.O.Ige, Jan 25, 2006
    #3
    1. Advertising

Want to reply to this thread or ask your own question?

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. keithb
    Replies:
    0
    Views:
    658
    keithb
    Feb 16, 2006
  2. Imran Aziz

    Get the current logged in user name

    Imran Aziz, Aug 2, 2005, in forum: ASP .Net Security
    Replies:
    8
    Views:
    236
  3. ShilpaM
    Replies:
    1
    Views:
    283
    Joe Kaplan
    Jan 18, 2007
  4. mvr
    Replies:
    5
    Views:
    583
    Aaron Bertrand [SQL Server MVP]
    May 16, 2006
  5. Rodrigo Bermejo

    Windows - Get current logged user

    Rodrigo Bermejo, Sep 28, 2007, in forum: Ruby
    Replies:
    13
    Views:
    440
    Devi Web Development
    Oct 24, 2007
Loading...

Share This Page