IE浏览器未向Intranet站点发送ASP.NET_SessionId cookie的请求 [英] ASP.NET_SessionId cookie not sent in request from IE browser for intranet site

查看:67
本文介绍了IE浏览器未向Intranet站点发送ASP.NET_SessionId cookie的请求的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

从IE访问Intranet上托管的ASP.NET MVC应用程序时,不会在请求中发送ASP.NET_SessionId。这发生在特定的测试服务上。在我们的开发中,托管相同的应用程序,我看到发送了ASP.NET_SessionId cookie。

When accessing an ASP.NET MVC application hosted on intranet from IE, the ASP.NET_SessionId is not sent in the request. This occurs on specific test serves. On our development serves hosting the same application, i see that the ASP.NET_SessionId cookie is sent.

下面是我从网络跟踪中看到的区别。
在不起作用的服务器上。

Below is the difference i see form the network trace. On the server that not working.

<entry>
        <pageref>1</pageref>
        <startedDateTime>2018-05-17T12:01:50.566+00:00</startedDateTime>
        <time>188</time>
        <request>
            <method>GET</method>
            <url>http://Server1/Content/Graphics/Cancel16.png</url>
            <httpVersion>HTTP/1.1</httpVersion>
            <cookies/>
            <headers>

服务器上传递会话密钥cookie的位置。

The on the server where the session key cookie is passed.

<entry>
        <pageref>0</pageref>
        <startedDateTime>2018-05-16T13:31:47.415+05:30</startedDateTime>
        <time>31</time>
        <request>
            <method>GET</method>
            <url>http://localhost/site/Content/Graphics/Cancel16.png</url>
            <httpVersion>HTTP/1.1</httpVersion>
            <cookies>
                <cookie>
                    <name>ASP.NET_SessionId</name>
                    <value>14zbzcehugb2dvsq0axwo5ud</value>
                </cookie>
            </cookies>
            <headers>

为什么未在此服务器上发送cookie信息。我已经验证了Internet选项的隐私设置,并且它们允许使用cookie,但是据我了解,这主要影响互联网站点。

Why would the cookie information not sent on this server. I have verified the internet option privacy setting and they allow cookies, but what i understand is this affect mainly the internet sites.

推荐答案

最后,问题是由于在应用程序的主机名设置中带有下划线''。当主机名设置为''时,IE似乎有问题,IE阻止发送会话cookie。

Finally the problem was because of having a underscore'' in the host name setup for the application. The IE, seems to have problem when the host name is set with '', the IE prevents sending session cookies.

从此处获得的答案帮助我确定了问题

这篇关于IE浏览器未向Intranet站点发送ASP.NET_SessionId cookie的请求的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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