Context.User.Identity question

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

Hi!

1st:

when I debug this:

FormsAuthentication.SetAuthCookie(email.Text, RememberCheckbox.Checked)

and set a breakpoint a line after

FormsAuthentication.SetAuthCookie(email.Text, RememberCheckbox.Checked)

at:


// Redirect browser back to originating page
Response.Redirect(Application["AppPath"].ToString());


I see in my watcher: User.Identity.Name = ""

why that?

what is my mistake? or what I must do else to set User.Identity.Name ???


2nd:

what set exactly 'IsAuthenticated' as authenticated???


regards,


gicio
 
When I understand it correct only this line of code:

FormsAuthentication.SetAuthCookie(email.Text, RememberCheckbox.Checked)

set the Request.IsAuthenticated to true

correct?

regards,

gicio
 
Back
Top