【发布时间】:2023-04-01 00:55:01
【问题描述】:
我有多个网站使用相同的 cookie 进行身份验证。假设他们在门户网站上登录,然后可以访问多个网站。
例如:
portal.ilvo(仅带有登录表单的网站)
site1.ilvo
site2.ilvo
siteX.ilvo
我已经在我的 cookie 中为 .ilvo 设置了域,但我似乎根本无法登录。
Web.config
<authentication mode="Forms">
<forms
name="iwa.authentication" timeout="10080"slidingExpiration="false" protection="All"
cookieless="UseCookies"
enableCrossAppRedirects="true" domain=".ilvo" />
</authentication>
非常感谢任何帮助!
【问题讨论】:
标签: asp.net asp.net-mvc cookies cross-domain forms-authentication