简体   繁体   中英

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.

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

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

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

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

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

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

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