简体   繁体   English

ASP.NET网页出现问题

[英]Having issues with ASP.NET web page

I'm facing a problem with two ASP.NET web pages. 我面临两个ASP.NET网页的问题。 Those pages are hosted on the same server but in different application pools. 这些页面托管在同一服务器上,但位于不同的应用程序池中。 Everytime I'm logged into page A, I'm facing a blank page when opening page B. It doesn't matter if I open it in a different tab or a new browser window, it shows me nothing. 每次我登录到页面A时,打开页面B时都会面对一个空白页面。无论是在其他选项卡中还是在新的浏览器窗口中打开都无所谓,它什么也没有显示。

So when testing the other way around, logging in at page B and then opening page A, it works fine BUT I'm already logged in at page A too (both pages use the same database and users). 因此,当进行另一种测试时,在页面B上登录然后打开页面A,它可以正常工作,但我也已经在页面A上登录(两个页面使用相同的数据库和用户)。 So it appears to me that I'm having a session/cookie problem here. 因此在我看来,我在这里遇到了会话/ Cookie问题。 I tried to define separate cookie names in the system.web section on both web configs already, unfortunately with no success. 我已经尝试在两个Web配置的system.web部分中定义单独的cookie名称,不幸的是没有成功。

Config SiteA: 配置站点A:

<configuration>
  ...
  <system.web>
    ...
    <sessionState timeout="60" cookieName="SiteA"/>
    ...
  </system.web>
  ...
</configurtation>

Config SiteB: 配置SiteB:

<configuration>
  ...
  <system.web>
    ...
    <sessionState timeout="60" cookieName="SiteB"/>
    ...
  </system.web>
  ...
</configuration>

Any ideas? 有任何想法吗?

Thanks for the helping commentators on my question. 感谢您对我的问题的帮助评论员。 The solution was the naming of the forms authentication cookies of both sites. 解决方案是命名两个站点的表单身份验证cookie。 After that it works fine. 之后,它工作正常。 Thanks 谢谢

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM