php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #15219 IE 6.0 and Cookies doesn't work
Submitted: 2002-01-25 04:18 UTC Modified: 2002-02-04 04:04 UTC
From: schiessler at gisquadrat dot com Assigned:
Status: Closed Package: Session related
PHP Version: 4.1.1 OS: Win 2000
Private report: No CVE-ID: None
 [2002-01-25 04:18 UTC] schiessler at gisquadrat dot com
maybe this issue was discussed in an former topic? Nothing found sophisticating. 

Using mantis 0.16.1 with php 4.1.1 as module in apache on an w2k server. 
Using IE6.0 (6.0.2600.0000)cannot login -> not cookie appears. although "accept cookies" is activated 

Using IE5.5 @ w2k or NS6.1@nt it works fine. 

some testpages I have copied from this and other webpage show the same result. Like 

<? 
setcookie("test","testing"); 
phpinfo(); 
?> 

shows for IE6.0 (@nt or w2k) (after reloading the page several times) 
Set-Cookie: test=testing for http response header 
but nothing elsewhere 

for NS6.1 (@nt) (after reload 1 time) 
the proper value appears in: 
- ApacheEnvironment HTTP_COOKIE 
- Response & RequestHeader 
- php variables _COOKIE["test"] & _SERVER["HTTP_COOKIE"] 

So Apache, PHP, IE55, NS61 seems to work correct. But IE 60 does not... 

The really wired is, that only one browser (IE60) in our group is able to have cookies. Another IIS/ASP-application 
in out LAN shows the same behavior. So maybe it's not a sort of PHP bug. More a communication problem between PHP and IE6.0. 

Nothing found at Microsoft site!
Does anybody know more about this issue? 
Please reply to schiessler@gisquadrat.com 

Thanks a lot. 


Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2002-01-25 23:55 UTC] webmaster at lxtype dot com
I had the same exact problem. I don't know what the exact problem was, but I went in under the cookies folder and deleted all of the current cookies for my domain (127.0.0.1) and made sure all the PHP sessions were deleted (not needed really, as they would eventually get GC'd anyway). I went in, reset the cookie, and it worked fine.

I also changed the code from:

$foo = 'bar';
session_register('foo');
$foo = 'some new bar';

to:

$foo = 'bar';
session_register('foo);
$HTTP_SESSION_VARS['foo'] = 'some new bar';

I am not sure exactly which of these "fixed" the problem, but it no longer shows up for me.

[[ Win2k Server SP 2, PHP 4.1.1, Apache 1.3.22, IE 6.0 ]]
 [2002-02-03 19:52 UTC] yohgaki@php.net
Is this windows specific  problem?
I don't have such problem with my Linux/Apache 1.3.22

Could you try apache 1.3.23 to see if it helps?
 [2002-02-04 04:04 UTC] schiessler at gisquadrat dot com
This error only occurs when IE60,SP2 with Update Q313675 is installed. With security patch Txxxxx(don't know exact number) it's the same. 

This problem occurs also at our IIS Application. But only if we connect from Intranet. Connecting via INTERnet this works fine. So I posted some text to Microsoft :) 
It seems the guys bust up smth in the INTRANET zone settings?!

So this is not a PHP related bug, or an Windows or Apache problem. Is just an Internet Explorer bug! 
Bill Gates is in Vienna today, just around the corner from me, I will ask HIM :D

I have closed this bug (if i am allowed to)


 [2003-06-24 07:27 UTC] olo at altkom dot com dot pl
We've had the same problem.

First, we thought that new cookie restrictions related to P3P in IE6.0 are the cause (See http://www.webauthors.org/portal/forums/showthread.php?threadid=717 and http://www.riderweb.com/news.php?artnum=15).

But then I've got an idea and discovered that the problem was due to some bug in IE - my hostname had an underscore character in it, when I've changed it (in DNS) and connected through a nam that used only plain alpha and dot chars, everything started working fine.

So my advice: eiliminate all strange characters from your host's name (both short name and FQDN).
 [2003-07-23 09:11 UTC] sanjay8886 at hotmail dot com
This is definitely not PHP issue. This problem also happens with tomcat JSP interface. The issue is related to IE 6.0. It doesn't accept hostname with "_" underscore characters. It works otherwise.

Thanks
sanjay
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Sat Apr 27 05:01:29 2024 UTC