1

I'm having two mvc-applications I need to debug at same time with different userLogins.

The two apps does not share any database or anything else.

The problem is: When I debug both apps at same time, and then login a user in app1 (default AspNet.Identity by the way). Then after that, I login a different user in app2. When I then go back to app1 and refresh the page, the user that is logged in in app2 gets logged in in app1.

So, is this is bug or how can I fix so I can be logged in as different users in my two apps?

EDIT: It works when I have the apps in different browsers (one in chrome and one in firefox)

user3228992
  • 1,373
  • 1
  • 16
  • 31

1 Answers1

2

as a solution just for debugging, you could open projects in different browsers, but if you want to solve it permanently you should know the mechanism of how membership login works cross different domains.

take a look to this: Asp.net forms authentication and multiple domains

and another one: http://www.codeproject.com/Tips/438319/Sharing-Authentication-Cookie-between-two-ASP-NET

Community
  • 1
  • 1