Frage

I created two websites in ASP .NET MVC4. Both are having different names.

I registered a new "userA" for the website #1 and signed in.

When I start the website #2 I see that the "userA" is already logged in.

How is it possible?

What do I have to do so website #2 is not going to work like that?

What exactly I have to change to get rid of that? web.config, cookies or what and how?

Thanks!

War es hilfreich?

Lösung

Try changing the name of the Forms Authentication Ticket, by default it is set to .ASPXAUTH which can cause issues if you're running multiple apps locally. This caught me up a few weeks back.

<forms 
   name=".myappauth" 
   loginUrl="~/Account/Login" 
   protection="All"
   timeout="30">
   <credentials>...</credentials>
</forms>

MSDN Documentation http://msdn.microsoft.com/en-us/library/1d3t3c61%28v=vs.85%29.aspx

Lizenziert unter: CC-BY-SA mit Zuschreibung
Nicht verbunden mit StackOverflow
scroll top