【发布时间】:2013-03-08 20:53:49
【问题描述】:
例子:
应用程序 = https://test2.mytest.com/MyApplication/Download.aspx
应用程序在 web.config 中启用了表单身份验证:
<authentication mode="Forms">
<forms loginUrl="https://test.mytest.com/Login/" name=".ASPXAUTH"/>
</authentication>
<authorization>
<deny users="?"/>
</authorization>
访问应用程序时,它会正确重定向到登录页面:
https://test.mytest.com/Login/?ReturnUrl=%2fMyApplication%2fDownload.aspx
但是,成功登录后会转到:
https://test.mytest.com/MyApplication/Download.aspx
而不是
https://test2.mytest.com/MyApplication/Download.aspx
它使用的是登录应用程序所在的子域 (test.mytest.com),而不是原始请求的子域 (test2.mytest.com)。 无论如何,表单身份验证是否重定向回原始请求子域,而不是登录应用程序所在的子域?
对此的任何帮助将不胜感激。
【问题讨论】:
标签: asp.net redirect login forms-authentication subdomain