asp.net mvc custom membership provider - define application
- by ile
I created custom membership provider for asp.net mvc applications and it all works fine except one thing:
when logged in to my application, I am also logged in to all other asp.net mvc applications that I run using Visual Studio. I suppose this data is being pulled from cache because when I logout and try to login again in other application, I'm being rejected.
In webconfig, I added applicationName in order to solve this but it didn't work:
<membership defaultProvider="SAMembershipProvider" userIsOnlineTimeWindow="15">
<providers>
<clear/>
<add
name="SAMembershipProvider"
type="ShinyAnt.Membership.SAMembershipProvider, ShinyAnt"
connectionStringName ="ShinyAntConnectionString"
applicationName="MyApp"
/>
</providers>
</membership>
<roleManager defaultProvider="SARoleProvider" enabled="true" cacheRolesInCookie="true">
<providers>
<clear/>
<add
name="SARoleProvider"
type="ShinyAnt.Membership.SARoleProvider"
connectionStringName ="ShinyAntConnectionString"
applicationName="MyApp"
/>
</providers>
</roleManager>
Is there any method that I forgot to implement that is dealing with this problem or it is something else?