简体   繁体   English

跨子域的 Asp.Net 配置文件

[英]Asp.Net Profile Across Sub-Domains

Is there any way I access Profile information set in one sub-domain across another sub-domain?有什么方法可以跨另一个子域访问一个子域中设置的个人资料信息? Or is the Profile information application specific?还是个人资料信息应用程序特定?

I am setting profile values in one sub-domain and want to access that Profile on another sub-domain.我正在一个子域中设置配置文件值,并希望在另一个子域中访问该配置文件。

If your applications specify the same applicationName value to the profile provider then they should access the same profile information as long as they agree on the user's identity.如果您的应用程序向配置文件提供者指定了相同的 applicationName 值,那么只要它们同意用户的身份,它们就应该访问相同的配置文件信息。

If you're using forms authentication then you can ensure that the authentication cookie is visible to all applications with如果您使用 forms 身份验证,那么您可以确保身份验证 cookie 对所有应用程序可见

<forms domain="parentdomain.com" ... />

Your applications will also need to share a machineKey to ensure that they can decrypt cookies created by the others.您的应用程序还需要共享一个 machineKey,以确保它们可以解密其他人创建的 cookies。

If you're using anonymous identification then you can share those cookies too with如果您使用匿名身份识别,那么您也可以与

<anonymousIdentification domain="parentdomain.com" ... />

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM