【发布时间】:2011-04-19 16:47:45
【问题描述】:
DNS 有一个通配符 *.website.com 指向 website.com。
Client A 的 URL 类似于:http://clientA.website.com/,并点击与client B 相同的登录页面。 Client A 登录,然后将子域更改为client B's。用户更改子域时如何强制用户自动返回登录页面?
这能解决问题吗?
<authentication mode="Forms">
<forms slidingExpiration="true" loginUrl="Views\Login.aspx"
defaultUrl="Views\Login.aspx" protection="All" timeout="300"
cookieless="UseCookies" enableCrossAppRedirects="false"
domain="*.website.com" <!--Will this property and value do what I want?-->
name=".ASPXFORMSAUTH"/>
</authentication>
谢谢!
【问题讨论】:
标签: asp.net security forms-authentication