ASP.NET Sessions across Multiple Domains

Is there a suitable .NET solution to provide persistent server sessions across multiple domains?

i.e. If a user of the site is registered on the site www.site1.com, he will also be registered on the site www.site2.com

Security is a problem with the program we are working on ...

Thank!

+3
source share
4 answers

Do you need to be in a session or are you looking for one single solution. If the latter take a look at something like the ADFS lines http://en.m.wikipedia.org/wiki/Active_Directory_Federation_Services?wasRedirected=true

+1
source

, ASPState (, ): http://www.codeproject.com/KB/session/sharedsession.aspx

AppDomain www.site1.com www.site2.com, .

AppPath, , , . :

        FieldInfo appDomainInfo = typeof(HttpRuntime).GetField("_appDomainId", BindingFlags.Instance | BindingFlags.NonPublic);
        appDomainInfo.SetValue(theRuntime, "/LM/W3SVC/1/ROOT/A_Website_Name_Here");
+1

"" ASP.NET.

( ), , , . , , . Windows Identity Foundation, OAuth, Jasig CAS. CAS - ( .NET-), Java, Java, , .

ASP.NET ( ). ( ), , (google aspnet_regsql -ssadd), .

, , : http://www.codeproject.com/KB/aspnet/ASPDOTNETPageLifecycle.aspx

.

+1

URL- URL- Rewrite IIS 7.5 Url Rewrite 2: Download

(In this answer, both URLs contain host entries for the same web application)

0
source

Source: https://habr.com/ru/post/1766432/


All Articles