标签:http io ar for sp on c log ad
1.两个系统的 web.config 都配置为 forms 验证方式( system.web —> authentication 节点)
2.在两个系统的Web.config里配置相同的 system.web —> machineKey 节点(节点生成:http://www.aspnetresources.com/tools/keycreator.aspx)
3.在两个系统的Web.config里配置相同的 system.web —> httpCookies 节点(<httpCookies domain=".xxx.com"/>)
<system.web>
<!-- BEGIN 身份验证配置节 -->
<authentication mode="Forms">
<forms loginUrl="~/Account/LogOn" timeout="2880" />
</authentication>
<machineKey validationKey="C7A01815F6AA26DBA9C6A9B5E4BCE8F3CC131519C0BAD696EC2453E8CFC944FE9DA09B7C651903A1C1052BF6385723874A02E26C1695 7E69A71A3CB3EC60626B" decryptionKey="54C2FFF68C75DFFE0F16E7BE473D8ECF81030E5817686A10D9C8D91A91AE9D57" validation="SHA1" decryption="AES" />
<httpCookies domain="同一域名"/>
<!-- End 身份验证配置节 -->
</system.web>
两系统用asp.net forms 身份验证方式实现跨域登录信息共享
标签:http io ar for sp on c log ad
原文地址:http://www.cnblogs.com/whlhaikuotiankong/p/3990411.html