Chris
Chris

Reputation: 2045

Keep User logged in across multiple applications on multiple servers

I am building a suite of applications using ASP.NET.

Is there a way to recognize that a user is logged in one application and allow quick navigation to another application on a different server?

Currently I am storing the password hashes in the database; but I wouldn't be opposed to other suggestions if they solve the problem.

Upvotes: 1

Views: 628

Answers (1)

PJDev
PJDev

Reputation: 11

Here is what I have done in the past.

Each application must share a forms authentication ticket. To do this the forms authentication cookie name must have the same name, the machineKeys must be the same, and the protection mode must be the same.

This works across domains, but does not work across IPs. What I do to get around this is to serialize the ticket info and store it in the database with the session id as the key. If a user is not authenticated the server will look for the session id in the database and rebuild the FA ticket if found.

Upvotes: 1

Related Questions