我有一個ASP.Net MVC網站,每個客戶都有一個子域名,例如customer1.site.com,customer2.site.com等。ASP.NET登錄到父域的子域
登錄使用標準的ASP.Net FormsAuthentication從customer1.site.com/login和customer2.site.com/login中正常工作。
如何從父域(例如site.com/login)登錄,其中用戶在表單域中指定子域名?我希望將auth cookie存儲在customer1.site.com或customer2.site.com中,因此顯然需要以某種方式重定向並重新發布登錄表單。
我處於類似的情況。有人有其他(更好)的解決方案嗎? – user2645830 2014-05-13 14:35:32