I have a problem with membership authentication. I have two websites, website1 and website2, and both of them uses forms authentication with SQL membership provider (SQLEXPRESS). I have two scenarios:
Case 1:
don't publish the website1 and try to login website1 with user1 -->Works ok don't publish the website2 and try to login --> it displays the previously logged in user (Website1 user)-->Perfect
Case 2:
publish the website1 and login-->works ok publish the website2 and try to login--> it does not show up the site1's logged in user (No idea why)
then login into website2 and open website1-->it does not show up the website2 logged in user or any user...
It looks like something wrong with cookies....
my web.config looks like this:
<authentication mode="Forms">
<forms loginUrl="~/LogOn/LogOn" timeout="2880" protection="All"/>
</authentication>
<authorization>
<deny users="?"/>
</authorization>
<membership>
<providers>
<clear />
<add name="AspNetSqlMembershipProvider" type="System.Web.Security.SqlMembershipProvider, System.Web, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" connectionStringName="ApplicationServices" enablePasswordRetrieval="false" enablePasswordReset="true" requiresQuestionAndAnswer="false" requiresUniqueEmail="false" passwordFormat="Hashed" maxInvalidPasswordAttempts="5" minRequiredPasswordLength="6" minRequiredNonalphanumericCharacters="0" passwordAttemptWindow="10" passwordStrengthRegularExpression="" applicationName="/" />
</providers>
</membership>
Please let me if you have any ideas on this...
thanks, swetha