IE11中的JSESSIONID已更改

时间:2017-03-08 10:05:43

标签: spring-mvc session servlets internet-explorer-11 session-cookies

在我的Spring MVC应用程序中,每个http请求在IE11中生成新的JSESSIONID,但在其他浏览器中保留相同的会话ID,直到用户注销。

if (IncludeIncomingCalls && !IncludeOutgoingCalls && !IncludeExternalCalls)
            {
                return _callsData.Where(x => x.IncomingCall && !x.OutgoingCall && !x.ExternalCall);
            }
            if (!IncludeIncomingCalls && IncludeOutgoingCalls && !IncludeExternalCalls)
            {
                return _callsData.Where(x => !x.IncomingCall && x.OutgoingCall && !x.ExternalCall);
            }
            if (!IncludeIncomingCalls && !IncludeOutgoingCalls && IncludeExternalCalls)
            {
                return _callsData.Where(x => !x.IncomingCall && !x.OutgoingCall && x.ExternalCall);
            }
            if (IncludeIncomingCalls && IncludeOutgoingCalls && !IncludeExternalCalls)
            {
                return _callsData.Where(x => x.IncomingCall && x.OutgoingCall && !x.ExternalCall);
            }
            if (IncludeIncomingCalls && !IncludeOutgoingCalls && IncludeExternalCalls)
            {
                return _callsData.Where(x => x.IncomingCall && !x.OutgoingCall && x.ExternalCall);
            }
            if (!IncludeIncomingCalls && IncludeOutgoingCalls && IncludeExternalCalls)
            {
                return _callsData.Where(x => !x.IncomingCall && x.OutgoingCall && x.ExternalCall);
            }

如何在用户登录IE11后保留相同的会话ID。由于会话ID更改,我无法从会话中获取当前用户。我怎样才能在IE11中解决这个问题。

0 个答案:

没有答案