FormsAuthentication
Hi all,
I started a new project today and started implementing Formsauthentication.
But on click of the LoginButton after complete username and password, the following method always return false even if credentials are correct.
if (FormsAuthentication.Authenticate(_tUsername.Text, _tPassword.Text))
{...}
this is a section of my web.config:
...
<system.web>
<authentication mode="Forms">
<forms loginUrl="Login.aspx">
<credentials>
<user name="jeff" password="test" />
<user name="lawrence" password="test" />
</credentials>
</forms>
</authentication>
<authorization>
<deny users="?" />
</authorization>
...
The project is a ASP.NET 2.0 WebApplication (AJAX Enabled).
I must oversee something, can anybody help? Thx in advance!
Grtz
|