【问题标题】:asp forms auth cookie domain not being set未设置 asp 表单身份验证 cookie 域
【发布时间】:2013-03-13 00:12:08
【问题描述】:

我正在尝试将 cookie 的域设置为 mysite.net,而不是无论我做什么,它都会将 cookie 设置为 server.mysite.net 问题是我想在子域之间切换,所以我可以做 server1 .mysite.net server2.mysite.net。

下面是我为 cookie 指定的行。

<pre>
<authentication mode="Forms">
      <forms timeout="120"   domain="mysite.net" cookieless="UseCookies" enableCrossAppRedirects="true" name=".ASPXAUTH" />
    </authentication>  
</pre>  

有什么想法吗?

【问题讨论】:

    标签: asp.net cookies iis-7


    【解决方案1】:

    https://stackoverflow.com/a/2088853/222427

    你已经为 web.config 中的一行工作了一周的时间......

    【讨论】:

      猜你喜欢
      • 2013-09-16
      • 1970-01-01
      • 1970-01-01
      • 2012-07-12
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2018-03-30
      相关资源
      最近更新 更多