Asp.Net档案跨子域 [英] Asp.Net Profile Across Sub-Domains

查看:216
本文介绍了Asp.Net档案跨子域的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

有什么办法我访问一个子域跨越另一个子域设置个人资料吗?或者是档案信息化应用的具体?

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.

推荐答案

如果您的应用程序指定相同的applicationName值到配置文件提供那么他们应该只要他们同意对用户的身份访问相同的配置文件信息。

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.

如果您在使用窗体身份验证,那么你可以确保身份验证cookie是大家有目共睹的应用程序以

If you're using forms authentication then you can ensure that the authentication cookie is visible to all applications with

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

您的应用程序也将需要共享的machineKey,以确保他们能够解密由其他人创建的cookie。

Your applications will also need to share a machineKey to ensure that they can decrypt cookies created by the others.

如果你使用匿名身份,那么你可以分享这些Cookie也以

If you're using anonymous identification then you can share those cookies too with

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

这篇关于Asp.Net档案跨子域的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆