Integrate multiple ASP.Net websites
I want to create a new website. The website has 3 applications, each one has its own membership/profile provider.
I want th开发者_如何学Pythone user to be able to log in to the site with one single sign on. Possible option AFAIK:- Define the same machinekeys/Connection Strings for all applications in their
web.config
files and I think I'm all set.
Does this work? And I'm curious to see if there's any other way.
Yeah, that is the path to go. Just make sure the config settings are identical and all three apps will work together just fine.
As a side: you say you want to build a new website with 3 applications. Are those "apps" separate sites or virtual directories of the top site? In other words, will they share the same URL?
The only issue I can think of is if the URL's are different then the session id's will also be different and therefore force the user to log in to each of them on access. This might be okay in your situation. With your method the credentials will be the same though.
精彩评论