How identify returning user in Forms Authentication?

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • Ronald S. Cook

    #1

    How identify returning user in Forms Authentication?

    I've got everything working with Forms Authentication except for one thing.
    When a persistent user (i.e. that checked "Remember Me" in the past and
    therefore now have a cookie) returns to the site, how do I identify which
    user it is?

    Do I use something like FormsAuthentica tion.GetAuthCoo kie... or maybe
    Request.Cookies (...? I'm guessing the user name is somewhere in the cookie
    since the code at sign in was this:

    FormsAuthentica tion.RedirectFr omLoginPage(txt UserName.Text,
    chkRememberMe.C hecked);

    Thanks very much for any feedback.

    Ron


Working...