C
ClevelandSteve
I am using forms authentication in my project. Within my login page I
check that the user is valid against the database and use the following
code to issue the cookie and redirect them to the next page:
FormsAuthentication.SetAuthCookie(txtUser.Text.Trim, False)
Response.Redirect("UserAccount.aspx")
My problem is that rather then loading the UserAccount.aspx page, it is
redirecting back to the login page. When a valid user and password is
entered a second time, the useraccount.aspx page loads. Any idea why
this is happening?
check that the user is valid against the database and use the following
code to issue the cookie and redirect them to the next page:
FormsAuthentication.SetAuthCookie(txtUser.Text.Trim, False)
Response.Redirect("UserAccount.aspx")
My problem is that rather then loading the UserAccount.aspx page, it is
redirecting back to the login page. When a valid user and password is
entered a second time, the useraccount.aspx page loads. Any idea why
this is happening?