The test script is Php,ie version IE9, the other kernel browser Ff,chrome,safari does not have this problem.
Found this problem, is to do a login page, using $_session to judge, IE is not logged up, other browsers no problem.
After testing the print session_id();
next time, ie refresh the page value is different, open d:\tmp\session (this is the php.ini inside the session storage location), each refresh to add a session file, of course, this does not exist under other browsers.
Later, a temporary solution is to set a cookie on the PHP page
session_start();setcookie('PHPSESSID',session_id());
It's a temporary settlement, but ... Eggs or continue to pain, the server (win2008 x86 IIS7 fastcgi php5.2.17nts) put a drupal, often people respond to login not, do not guess, it is definitely not with IE, this thing annoyed me ah, I do not want to change Drupal ... Anyway, for a few months, I've been looking for answers.
Now, the answer is not so important, just hope there is a solution, please walk past friends, give your experience, help me this stray lamb.
By the way, on the way to find the answer, I found a problem with the same person, but the solution I did not understand, because to be sure, my domain name is not underlined. Http://forums.iis.net/t/1150171.aspx Please understand this post of friends, also give advice.
Attach the packet capture data (the domain name is hidden):
IE under:
get/index.php http/1.1accept:text/html, Application/xhtml+xml, */*accept-language:zh-cnuser-agent:mozilla/5.0 ( Compatible MSIE 9.0; Windows NT 6.1; trident/5.0) Accept-encoding:gzip, Deflatehost: ***.***.cnconnection:keep-alivecookie:has_js=1http/1.1 200 Okcache-control:public, max-age=600content-type:text/html; Charset=utf-8content-language:zh-hansexpires:sun, 1978 05:00:00 Gmtlast-modified:mon, 2013 05:54:19 +0000 ETag: "1376286859-0" Vary:cookieserver:microsoft-iis/7.0x-powered-by:php/5.2.17x-drupal-cache:missx-generator: Drupal 7 (http://drupal.org) x-powered-by:asp. Netdate:mon, 05:54:37 gmtconnection:keep-alivecontent-length:9829post/?q=front-page&destination= Front-page http/1.1accept:text/html, Application/xhtml+xml, */*referer:http://***.***.cn/index.phpaccept-language : zh-cnuser-agent:mozilla/5.0 (compatible; MSIE 9.0; Windows NT 6.1; trident/5.0) Content-type:application/x-www-form-urlencodedaccept-encoding:gzip, DeflateHost: . ***.cncontent-length:129connection:keep-alivecache-control:no-cachecookie:has_js=1http/1.1 302 Redirectcache-control:no-cache, Must-revalidate, post-check=0, pre-check=0content-type:text/html; Charset=utf-8expires:sun, 1978 05:00:00 Gmtlast-modified:mon, 06:02:32 +0000etag: "1376287352" Locatio N:http://***.***.cn/?q=front-pageserver:microsoft-iis/7.0x-powered-by:php/5.2.17x-drupal-cache:missset-cookie: Sess6a2ee0acf5e5bd0d9cea678a1bb7540f=s2cffredq47dbalxdlxlcvzhqni98mmm4yhpy_k7dho; expires=wed, 04-sep-2013 09:35:57 GMT; Path=d:/tmp/cook; domain=.***.***.cn; Httponlyx-powered-by:asp.netdate:mon, 06:02:37 gmtconnection:keep-alivecontent-length:155
Under Firefox:
get/index.php http/1.1host: ***.***.cnuser-agent:mozilla/5.0 (Windows NT 6.1; rv:22.0) gecko/20100101 Firefox/ 22.0accept:text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8accept-language:zh-cn,zh;q=0.8,en-us ; Q=0.5,en;q=0.3accept-encoding:gzip, Deflatecookie:drupal.toolbar.collapsed=0; Has_js=1connection:keep-aliveif-modified-since:mon, 05:56:10 +0000if-none-match: "1376286970" HTTP/1.1 200 Okcache-control:no-cache, Must-revalidate, post-check=0, pre-check=0content-type:text/html; Charset=utf-8content-language:zh-hansexpires:sun, 1978 05:00:00 Gmtlast-modified:mon, 2013 05:56:51 +0000 ETag: "1376287011" Server:microsoft-iis/7.0x-powered-by:php/5.2.17x-generator:drupal 7 (http://drupal.org) X-powered-by:asp. Netdate:mon, 05:56:56 gmtconnection:keep-alivecontent-length:18842post/?q=front-page&destination= Front-page http/1.1host: ***.***.cnuser-agent:mozilla/5.0 (Windows NT 6.1; rv:22.0) gecko/20100101 Firefox/22.0Accept:text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8accept-language:zh-cn,zh;q=0.8,en-us;q=0.5, En;q=0.3accept-encoding:gzip, Deflatereferer:http://***.***.cn/cookie:drupal.toolbar.collapsed=0; has_js=1connection:keep-alivecontent-type:application/x-www-form-urlencodedcontent-length:129http/1.1 302 Redirectcache-control:no-cache, Must-revalidate, post-check=0, pre-check=0content-type:text/html; Charset=utf-8expires:sun, 1978 05:00:00 Gmtlast-modified:mon, 05:59:42 +0000etag: "1376287182" Locatio N:http://***.***.cn/?q=front-pageserver:microsoft-iis/7.0x-powered-by:php/5.2.17x-drupal-cache:missset-cookie: sess6a2ee0acf5e5bd0d9cea678a1bb7540f=djnrvbdgxevpumznszkg9u8bap0dhqx5wp8jfhjv81u; expires=wed, 04-sep-2013 09:33:07 GMT; Path=d:/tmp/cook; domain=.***.***.cn; Httponlyx-powered-by:asp.netdate:mon, 05:59:47 gmtconnection:keep-alivecontent-length:155
Reply content:
The test script is Php,ie version IE9, the other kernel browser Ff,chrome,safari does not have this problem.
Found this problem, is to do a login page, using $_session to judge, IE is not logged up, other browsers no problem.
After testing the print session_id();
next time, ie refresh the page value is different, open d:\tmp\session (this is the php.ini inside the session storage location), each refresh to add a session file, of course, this does not exist under other browsers.
Later, a temporary solution is to set a cookie on the PHP page
session_start();setcookie('PHPSESSID',session_id());
It's a temporary settlement, but ... Eggs or continue to pain, the server (win2008 x86 IIS7 fastcgi php5.2.17nts) put a drupal, often people respond to login not, do not guess, it is definitely not with IE, this thing annoyed me ah, I do not want to change Drupal ... Anyway, for a few months, I've been looking for answers.
Now, the answer is not so important, just hope there is a solution, please walk past friends, give your experience, help me this stray lamb.
By the way, on the way to find the answer, I found a problem with the same person, but the solution I did not understand, because to be sure, my domain name is not underlined. Http://forums.iis.net/t/1150171.aspx Please understand this post of friends, also give advice.
Attach the packet capture data (the domain name is hidden):
IE under:
get/index.php http/1.1accept:text/html, Application/xhtml+xml, */*accept-language:zh-cnuser-agent:mozilla/5.0 ( Compatible MSIE 9.0; Windows NT 6.1; trident/5.0) Accept-encoding:gzip, Deflatehost: ***.***.cnconnection:keep-alivecookie:has_js=1http/1.1 200 Okcache-control:public, max-age=600content-type:text/html; Charset=utf-8content-language:zh-hansexpires:sun, 1978 05:00:00 Gmtlast-modified:mon, 2013 05:54:19 +0000 ETag: "1376286859-0" Vary:cookieserver:microsoft-iis/7.0x-powered-by:php/5.2.17x-drupal-cache:missx-generator: Drupal 7 (http://drupal.org) x-powered-by:asp. Netdate:mon, 05:54:37 gmtconnection:keep-alivecontent-length:9829post/?q=front-page&destination= Front-page http/1.1accept:text/html, Application/xhtml+xml, */*referer:http://***.***.cn/index.phpaccept-language : zh-cnuser-agent:mozilla/5.0 (compatible; MSIE 9.0; Windows NT 6.1; trident/5.0) Content-type:application/x-www-form-urlencodedaccept-encoding:gzip, DeflateHost: . ***.cncontent-length:129connection:keep-alivecache-control:no-cachecookie:has_js=1http/1.1 302 Redirectcache-control:no-cache, Must-revalidate, post-check=0, pre-check=0content-type:text/html; Charset=utf-8expires:sun, 1978 05:00:00 Gmtlast-modified:mon, 06:02:32 +0000etag: "1376287352" Locatio N:http://***.***.cn/?q=front-pageserver:microsoft-iis/7.0x-powered-by:php/5.2.17x-drupal-cache:missset-cookie: Sess6a2ee0acf5e5bd0d9cea678a1bb7540f=s2cffredq47dbalxdlxlcvzhqni98mmm4yhpy_k7dho; expires=wed, 04-sep-2013 09:35:57 GMT; Path=d:/tmp/cook; domain=.***.***.cn; Httponlyx-powered-by:asp.netdate:mon, 06:02:37 gmtconnection:keep-alivecontent-length:155
Under Firefox:
get/index.php http/1.1host: ***.***.cnuser-agent:mozilla/5.0 (Windows NT 6.1; rv:22.0) gecko/20100101 Firefox/ 22.0accept:text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8accept-language:zh-cn,zh;q=0.8,en-us ; Q=0.5,en;q=0.3accept-encoding:gzip, Deflatecookie:drupal.toolbar.collapsed=0; Has_js=1connection:keep-aliveif-modified-since:mon, 05:56:10 +0000if-none-match: "1376286970" HTTP/1.1 200 Okcache-control:no-cache, Must-revalidate, post-check=0, pre-check=0content-type:text/html; Charset=utf-8content-language:zh-hansexpires:sun, 1978 05:00:00 Gmtlast-modified:mon, 2013 05:56:51 +0000 ETag: "1376287011" Server:microsoft-iis/7.0x-powered-by:php/5.2.17x-generator:drupal 7 (http://drupal.org) X-powered-by:asp. Netdate:mon, 05:56:56 gmtconnection:keep-alivecontent-length:18842post/?q=front-page&destination= Front-page http/1.1host: ***.***.cnuser-agent:mozilla/5.0 (Windows NT 6.1; rv:22.0) gecko/20100101 Firefox/22.0Accept:text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8accept-language:zh-cn,zh;q=0.8,en-us;q=0.5, En;q=0.3accept-encoding:gzip, Deflatereferer:http://***.***.cn/cookie:drupal.toolbar.collapsed=0; has_js=1connection:keep-alivecontent-type:application/x-www-form-urlencodedcontent-length:129http/1.1 302 Redirectcache-control:no-cache, Must-revalidate, post-check=0, pre-check=0content-type:text/html; Charset=utf-8expires:sun, 1978 05:00:00 Gmtlast-modified:mon, 05:59:42 +0000etag: "1376287182" Locatio N:http://***.***.cn/?q=front-pageserver:microsoft-iis/7.0x-powered-by:php/5.2.17x-drupal-cache:missset-cookie: sess6a2ee0acf5e5bd0d9cea678a1bb7540f=djnrvbdgxevpumznszkg9u8bap0dhqx5wp8jfhjv81u; expires=wed, 04-sep-2013 09:33:07 GMT; Path=d:/tmp/cook; domain=.***.***.cn; Httponlyx-powered-by:asp.netdate:mon, 05:59:47 gmtconnection:keep-alivecontent-length:155
Oneself to the knot paste, finally found out where the problem, it is really my fault.
Because I put a variable inside the php.ini: Session.cookie_path the meaning of the wrong understanding, filled into d:\tmp, so we can not log in. Now it's normal to change to empty.
Add:
session.cookie_path
Refers session
to the site domain in effect;
session.save_path
Refers session
to the path where temporary files are stored.