Context.User.Identity question

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
 
G

Guest

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
 

Ask a Question

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

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,767
Messages
2,569,570
Members
45,045
Latest member
DRCM

Latest Threads

Top