【问题标题】:Sitecore and public website FormAuthontication issueSitecore 和公共网站 FormAuthontication 问题
【发布时间】:2013-08-19 08:59:24
【问题描述】:

在同一浏览器的不同选项卡中打开 sitecore 门户和公共网站时,我收到“应用程序访问被拒绝”。错误(下图)。 我发现它是如何发生的。首先我登录到 sitecore 门户,然后我登录到公共网站,两者都在同一个浏览器中打开。然后我单击 sitecore 树项,它重定向到 sitecore 门户主页。 (http://myWebsite/sitecore/shell/default.aspx)

在公共网站中,我使用 FormAuthontication cookie 和服务器会话来处理每个用户。但我发现 sitecore 也使用了 FormAuthontication cookie。

当我登录到 sitecore 时,它​​会创建 FormAuthontication cookie。但我登录公共网站,FormAuthontication cookie 被修改。

因此,此 FormAuthontication cookie 和 sitecore 重定向到 sitecore 主页之间存在冲突。 有没有办法处理这种情况?

【问题讨论】:

    标签: asp.net login sitecore sitecore6


    【解决方案1】:

    您正在尝试在同一浏览器中创建 2 个不同的会话,它们将同时使用 FormAuthentication 到同一域。这行不通。

    这里最简单的解决方案是向您的应用程序添加另一个绑定,例如sitecore.myWebsite

    • 使用此绑定 (http://sitecore.myWebsite/sitecore/shell/default.aspx) 登录到 Sitecore 后端
    • 对于网站的标准访问,只需使用http://myWebsite url。

    如果您在本地测试,请记住在您的 hosts 文件中添加条目:

    127.0.0.1 sitecore.myWebsite
    

    【讨论】:

      猜你喜欢
      • 2011-04-24
      • 1970-01-01
      • 1970-01-01
      • 2019-06-25
      • 2021-11-01
      • 2011-09-29
      • 1970-01-01
      • 1970-01-01
      • 2011-01-10
      相关资源
      最近更新 更多