0

My Azure cloud service app has users logged in with session data. If they click on a link internally that doesn't have a preceding www, then the session data is not applied. If they go back and click on a link that does have a preceding www, the session data works as expected. Does anyone know how to resolve this?

TIA

4

1 回答 1

1

听起来您的会话 cookie 没有调整到域的通配符。这会是个问题吗?检查 web.config 的 forms 部分是否包含域属性,如果不包含,请设置它。

<authentication mode="Forms">
  <forms loginUrl="/Account/LogOn" timeout="43200" domain="yourdomain.com"/>
</authentication>
于 2013-05-09T15:14:10.400 回答