User.Identity.Name

Discussion in 'ASP .Net Building Controls' started by Nedu N, Dec 8, 2003.

  1. Nedu N

    Nedu N Guest

    Hi,

    I am using Forms authentication -in which -
    I am trying to use User.Identity.Name, i am getting the user name in this
    field even after i logout (i.e, FormaAuthentication.SighnOut(),
    and also i am trying to use User.Identity.IsAuthenticated for checking
    whether the User has logged in or not.

    I don't want to store the user name in Session variable once the User logs
    in.

    I want to make use of User object properties for getting to know the uswr
    name and whether user has logged in or not.

    Is this possible?

    Thanks
    Nedu
    Nedu N, Dec 8, 2003
    #1
    1. Advertising

  2. Nedu N

    MSFT Guest

    Hi Nedu,

    SignOut method will remove the cookie item related to form authentication,
    and this will be effect for next request. For current request ( when you
    call SignOut), User.Identity is still valid.

    Luke
    Microsoft Online Support

    Get Secure! www.microsoft.com/security
    (This posting is provided "AS IS", with no warranties, and confers no
    rights.)
    MSFT, Dec 9, 2003
    #2
    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. Giovanni Bassi
    Replies:
    0
    Views:
    623
    Giovanni Bassi
    Oct 20, 2003
  2. nalbayo
    Replies:
    2
    Views:
    5,471
    Bruce Barker
    Nov 11, 2005
  3. Frederick D'hont
    Replies:
    0
    Views:
    296
    Frederick D'hont
    Jul 25, 2005
  4. Replies:
    6
    Views:
    433
  5. Antonio O''Neal

    user.identity.name returns old AD user name

    Antonio O''Neal, Oct 31, 2008, in forum: ASP .Net Security
    Replies:
    5
    Views:
    2,036
    Antonio O''Neal
    Nov 3, 2008
Loading...

Share This Page