百思不得其解,IE浏览器不发送cookie,其它浏览器都没问题!
为什么IE不发送cookie,其它浏览器都没问题,试了几台PC,IE7、8、9、10都这样。
麻烦大侠帮忙看看,问题在哪儿?
下面是IE开发者工具的HTTP记录:
这是登录
----------
键 值
请求 POST /api/login HTTP/1.1
Accept */*
Content-Type application/json
Referer http://mytest.f3322.org:5678/mmapi.html
Accept-Language zh-CN
Accept-Encoding gzip, deflate
User-Agent Mozilla/5.0 (Windows NT 6.1; WOW64; Trident/7.0; rv:11.0) like Gecko
Host mytest.f3322.org:5678
Content-Length 29
DNT 1
Connection Keep-Alive
Cache-Control no-cache
键 值
响应 HTTP/1.1 200 OK
Server eHttpd/1.0.1 (mytest@sina.com)
Set-Cookie SessionID=WXX33CC5CB16E; domain=mytest.f3322.org; path=/
Connection keep-alive
Keep-Alive 30
Content-Length 10
Content-type application/json
Expires Fri, 10 Apr 2008 14:00:00 GMT
Pragma no-cache
--------------------------------------------------------------------------------------------------------------
这是取数据
-------------
键 值
请求 GET /api/deviceType HTTP/1.1
Accept */*
Referer http://mytest.f3322.org:5678/mmapi.html
Accept-Language zh-CN
Accept-Encoding gzip, deflate
User-Agent Mozilla/5.0 (Windows NT 6.1; WOW64; Trident/7.0; rv:11.0) like Gecko
Host mytest.f3322.org:5678
DNT 1
Connection Keep-Alive
----现在的问题是IE浏览器没有发送cookie!!!
键 值
响应 HTTP/1.1 200 OK
Server eHttpd/1.0.1 (mytest@sina.com)
Connection keep-alive
Keep-Alive 30
Content-Length 11
Content-type application/json
Expires Fri, 10 Apr 2008 14:00:00 GMT
Pragma no-cache
-----------------------------
如果不用域名,用ip地址,ie又发送cookie,真的很头疼的问题...