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?
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?