I am testing an ASP.NET application with Form Authentication. I set up all the necessary attributes in WEB.CONFIG. In my Login form I have the following code in the Click Method:
private void LogIn_Click(object sender, System.EventArgs e)
{
string user = txtUserName.Text;
string pswd = txtPassword.Text;
FormsAuthentication.RedirectFromLoginPage( user, false);
}
Basically the above code should allow ANYBODY to move on to the next page.
But, I get the login form after clicking on Login button. Basically I see that for some reason the cookies is not created. And I have had this problem before where my ASP.NET apps do not create cookies. Any other page I go to (on the WWW) will create a cookie. But when I run my own apps the cookies are not created. I tried it with IE and FireFox and the same result.
Can anybody suggest what I might be missing? If a typical WWW page can create a cookie, why not my own ASP.NET app?
Thank you in advance.
"The creative process is nothing but a series of crises." Isaac Bashevis Singer
"My experience is that as soon as people are old enough to know better, they don't know anything at all." Oscar Wilde
"If a nation values anything more than freedom, it will lose its freedom; and the irony of it is that if it is comfort or money that it values more, it will lose that too." W.Somerset Maugham