简体   繁体   English

从LAN PC登录IIS网站

[英]Login to IIS Website from LAN PC

I have a local IIS Website. 我有一个本地IIS网站。 I can access it locally. 我可以在本地访问它。 However, when I try to login from the LAN computer, I cannot sign in. I can browser the site, but not logging in does not work. 但是,当我尝试从LAN计算机登录时,无法登录。我可以浏览该站点,但无法登录则不起作用。 The login code return true; 登录代码返回true; however, it seems like IIS does not keep a session for Local computer. 但是,似乎IIS不会为本地计算机保留会话。

I am running IIS 7.5. 我正在运行IIS 7.5。 I think I miss an IIS setup or installation somewhere. 我想我错过了某个地方的IIS安装或安装。

Have any of you ran to this issue before? 你们有没有遇到过这个问题?

I found the solution for this. 我找到了解决方案。 In the Web Config, I have set it to only allow form and cookies from a certain domain. 在Web Config中,我将其设置为仅允许来自特定域的表单和cookie。 When removing that, it works 当删除它时,它起作用

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

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