Author: Shaiju_Rajan | Posted on: 5/9/2010 7:17:53 PM | Views : 790

I have configured Forms Authentication in my web config file as below.


Following is my code


<authentication mode="Forms" > <forms loginUrl ="Default.aspx" > <credentials> <user name="shaiju" password="shaiju1234"/> </credentials> </forms> </authentication> <authorization> <deny users ="?"/> </authorization>




The issue is that FormsAuthentication.Authenticate never returns true. This is a very simple website with only two pages and no other code(The code too was copied from MSDN).


protected void btnSubmit_Click(object sender, EventArgs e) { FormsAuthenticationTicket ticket; // Pull credentials from form fields and try to authenticate the user. if ( ...

Go to the complete details ...