Hello Guys,

I just setup a .net membership provider with our website. Which also runs a forum software, both sites use .net's membership provider.

PROBLEM:

1. If i login with the "SAME USERNAME AND PASSWORD" in the aspnet_membership table, It works with the forum software, but fails with the code below. However, when Logged in the forum software, the login name shows on my custom page.

2. If i register with my custom registration page, it duplicates the field that alread exists in the table, ie if i setup membership.createuser("test", "test@mydomain.com","password") . It duplicates what was registered with the other software.

both run c#

Main problem, Is that i cant login from the code below.

HELP :-(

Here is my code



<asp:Login ID="Login1" runat="server" BorderPadding="5" BorderStyle="Solid"
CreateUserText="New User ?" FailureText="Login Failed"
MembershipProvider="newday"
PasswordRecoveryText="Lost Passwords ?" VisibleWhenLoggedIn="False"
CreateUserUrl="~/signup.aspx" PasswordRecoveryUrl="~/password.aspx">
</asp:Login>





protected void Login1_Authenticate(object sender, AuthenticateEventArgs e)
{


}









<authorization>
<deny users="?" />
<allow users="*" />
</authorization>
<membership defaultProvider="newday">
<providers>
<add name="newday"
type="System.Web.Security.SqlMembershipProvider"
connectionStringName="newday"
applicationName="newday"
requiresQuestionAndAnswer="false"
minRequiredPasswordLength="3"
minRequiredNonalphanumericCharacters="0" />
</providers>
</membership>





<authentication mode="Forms">
<forms name=".newday" protection="All" timeout="60000" loginUrl="http://www.mydomain.com/login.aspx" slidingExpiration="true" />
</authentication>
<anonymousIdentification
enabled="false"
cookieName=".ASPXANONYMOUS"
cookieTimeout="100000"
cookiePath="/"
cookieRequireSSL="false"
cookieSlidingExpiration="true"
cookieProtection="None" domain=".mydomain.com" />


<machineKey validationKey='F0240980CBDE93D73B411E06050019BECBB613057006A04209C13D58EF548465651595E1D7A4378A62CF88FF0674F302E6FCF0C9AB5AACED0AC6BEB9F30411FF' decryptionKey='7546218B5FC0BAC515111D80A23B5C853BD253A17F8D9208' validation='SHA1'/>





<connectionStrings>
<add name="newday" connectionString="Data Source=xxxxxx providerName="System.Data.SqlClient" />
</connectionStrings>