会话中使用主机名时,而不是IP地址(IE)丢失 [英] Session lost when using hostname instead of IP address (IE)

查看:134
本文介绍了会话中使用主机名时,而不是IP地址(IE)丢失的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我学习asp.net MVC 2,这是非常excting我。

I'm learning asp.net mvc 2, it's very excting with me.

我已经建立了一个小型MVC2应用,建立了它ASP.net开发服务器它工作正常。然而,是什么问题时,有它在IIS 7.5,Window服务器2008 R2企业部署。 Session是awlays空当我访问由IE浏览器的应用程序并使用主机名来指定的URL。

I has built a small MVC2 application, it is working fine in built it ASP.net Development Server. However, there're something wrong when have it deployed in IIS 7.5, Window Server 2008 R2 Enterprise. Session is awlays null when I access the application by IE and use hostname to specify the url.

使用IE浏览器(IE 7或IE8)来访问我的链接 HTTP应用程序://本地主机/ 或ip地址=>每做工精细

Using IE (IE 7 or IE8) to access my application with link http://localhost/ or ipaddress => every working fine

但是当我使用IE浏览器(IE 7或IE8)来访问我的链接,HTTP应用程序:/主机名/ =>会话总是空

我supprised而Firefox在所有情况下做工精细,无论是内置在ASP.net开发服务器和IIS服务器,两种情况下的主机名和IP和本地主机。

I'm supprised while FireFox working fine in all cases, both of built in ASP.net Development Server and IIS server, both cases hostname and ip and localhost.

我真的AP preciate您的意见!

I really appreciate your advise!

感谢

推荐答案

我想通了这个问题,所造成的有下划线的Web服务器的主机名。
感谢所有。

I figured out the problem, that caused by the web server host name which has an underscore. Thanks all.

这篇关于会话中使用主机名时,而不是IP地址(IE)丢失的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆