Login FormsAuthentication

G

Guest

Hi, here's my cod
If AuthorizeUser(txtUsername.Text, txtPassword.Text) The
If Request.QueryString("ReturnURL") > "" The
FormsAuthentication.RedirectFromLoginPage(txtUsername.Text, False
Els
FormsAuthentication.SetAuthCookie(txtUsername.Text, False
Response.Redirect("Checkout.aspx"
End I
End I

I have an AuthorizeUser function that checks for a webpassword in my sql database. Return true or false if it exists. Well, my prolem is when I call the User.Identity.Name in another form after the SetAuthCookie line has fired, the value is "". Why isn't the User.Identity.Name have a value when SetAuthCookie is initiated?
 

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

Top