0

My problem is the same that: Multiple applications using same login database logging each other out

I've set up two ASP.NET applications on a machine, their web.config files contain the same applicationName value in AspNetSqlMembershipProvider item so they share users and roles.

The problem sequence is:

user logs into application A, opens new tab in a browser logs into application B, his login in application A is signed out and vice versa.

Should I use a different approach to sharing login information between two applications?

The problem is that the solution, only avoid signed out beetween applications, but the applications do not share users logins. I want that.

  • User logs into application A
  • He opens new tab and goes to application B --> User is logged into application B because he was logged in A.
  • And vice versa

How can i make this?

Community
  • 1
  • 1
Pedre
  • 446
  • 1
  • 8
  • 16
  • Have a look at the following link http://stackoverflow.com/questions/2454623/multiple-applications-using-same-login-database-logging-each-other-out – Curious Coder Oct 31 '12 at 10:55

1 Answers1

1

Maybe if you follow these instructions:
http://telligent.com/support/telligent_evolution_platform/w/documentation/common-things-to-check-when-using-forms-authentication.aspx

Keep cookiename, domain and machine key the same. This worked for me, but my app is in a subdirectory of the other app.

Remy
  • 12,555
  • 14
  • 64
  • 104
  • But if I keep cookiename the same, "when user logs into application A, opens new tab in a browser logs into application B, his login in application A is signed out and vice versa." – Pedre Oct 31 '12 at 09:01
  • But it's the same login and id? And the same account? – Remy Oct 31 '12 at 12:31
  • @Pedre The problem is the same cookiename and not the same login/password and membership. – gbs Oct 31 '12 at 21:46
  • But he needs the same cookie in order to automatically login to the other app. No? – Remy Nov 01 '12 at 10:47
  • @Remy exact, I need that automatically login to the other app. I mean, I login in application A with user X, i need that if i go to application B URL I am already logged as user X. But if I keep cookiename the same, "when user logs into application A, opens new tab in a browser logs into application B, his login in application A is signed out and vice versa." – Pedre Nov 03 '12 at 18:46