Easy Single Sign-on with ASP. NET Forms Identity Authentication
For example, our primary domain is domain.com.
The other two-level domains have
1, list.domain.com
2, item.domain.com
3, home.domain.com
Login and register are placed in passport.domain.com this level two domain name goes down processing
configuring in Web. config
1 <AuthenticationMode= "Forms"> 4 <Formsname= "CNBDQ"loginurl= "/login"Protection= "All"Timeout= "480"Path="/"Domain= ". domain.com"/> 7 </Authentication>8 9 Ten <MachineKeyvalidationkey= "9173ba1d6c2b63bf9ecf58f8c5989cc5da7b8500f878a6d2f33550a0b2cca6e67f19a4e05119c45d343e499ab2c418ad6997585d447e4f6536d 1c3f33427b3f5 "
decryptionkey= "3c5f18aae07a2e0f32d88644f3cfd5637f0766fb55c47b20"Validation= "SHA1"/>
This configuration is required for other level two sites
After successful login
Formsauthentication.setauthcookie ("iqing"false);
If the site management background mgr.domain.com do not need to implement single sign-on that the site of the property then don't call CNBDQ on it.
Asp. NET for SSO Single sign-on