Forms Authentication across Sub-Domains on local IIS

后端 未结 2 779
灰色年华
灰色年华 2021-01-05 18:15

I know a cookie can be shared across multiple subdomains using the setting



        
2条回答
  •  死守一世寂寞
    2021-01-05 18:41

    This is a reminder for anyone running in Framework 4.5 and trying to share the token with frameworks 4 and lower, please notice that this will cause you not to receive the auth cookie on any of the 4 and lower apps. ie: if in your web.config you have:

    
    

    You can get it to work by removing the targetFramework="4.5" attribute to get it to work, though I don't know if there are any side effects in doing so:

    
    

提交回复
热议问题