MobileFormsAuthentication Login Status

Discussion in 'ASP .Net Mobile' started by Alex Maghen, May 22, 2007.

  1. Alex Maghen

    Alex Maghen Guest

    Is there a programmatic way to determine the login status of a user and the
    Username with which they logged in?
     
    Alex Maghen, May 22, 2007
    #1
    1. Advertising

  2. Hi Alex,

    You can still use HttpContext.Current.User to determine the login status:

    if (HttpContext.Current.User != null &&
    HttpContext.Current.User.Identity.IsAuthenticated) {
    string userName = HttpContext.Current.User.Identity.Name;
    }


    Regards,
    Walter Wang (, remove 'online.')
    Microsoft Online Community Support

    ==================================================
    When responding to posts, please "Reply to Group" via your newsreader so
    that others may learn and benefit from your issue.
    ==================================================

    This posting is provided "AS IS" with no warranties, and confers no rights.
     
    Walter Wang [MSFT], May 23, 2007
    #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. Marni

    MobileFormsAuthentication.SignOut

    Marni, Jul 12, 2003, in forum: ASP .Net Mobile
    Replies:
    0
    Views:
    138
    Marni
    Jul 12, 2003
  2. Marni

    MobileFormsAuthentication

    Marni, Jul 12, 2003, in forum: ASP .Net Mobile
    Replies:
    0
    Views:
    121
    Marni
    Jul 12, 2003
  3. iewhhos
    Replies:
    0
    Views:
    142
    iewhhos
    Jul 15, 2004
  4. Tom Cole
    Replies:
    0
    Views:
    121
    Tom Cole
    Oct 6, 2004
  5. iewhhos

    MobileFormsAuthentication.RedirectFromLoginPage

    iewhhos, Jul 15, 2004, in forum: ASP .Net Security
    Replies:
    0
    Views:
    121
    iewhhos
    Jul 15, 2004
Loading...

Share This Page