473,320 Members | 2,004 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,320 software developers and data experts.

MSIE 6.0 refuses to send back cookie (Firefox works)

Hello,

I'm having trouble getting MSIE 6.0 (running on XP SP2) to accept a
cookie which works fine in both Firefox and wget. The web server is Boa
0.94.13 (a small embedded server) using PHP 4.3.10 for CGI.

Even with the lowest security settings in MSIE there is no cookie
acceptance, and no "Cookie:" HTTP header is being sent back by MSIE.

This is the php code for a fairly minimal testcase:

<?php
ob_start();
error_reporting (E_ALL);
header('P3P: CP="CAO DSP COR CURa ADMa DEVa OUR IND PHY ONL UNI COM NAV
INT DEM
PRE"');
// Set cookie
setcookie ('test', 'test', 0, '/', '.huwag.net');
// Check if cookie exists
if (!empty($_COOKIE['test'])) {
echo "Cookies are enabled on your browser";
}
else {
echo "Cookies are <b>NOT</b> enabled on your browser";
}
?>

Here's my traffic, request then response:
--------
GET /cgi-bin/php/cookietest.php HTTP/1.1
Accept: */*
Accept-Language: de
Accept-Encoding: gzip, deflate
User-Agent: Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1;
..NET CLR 1.1.4322)
Host: hw50251_00000007.hannover.huwag.net
Proxy-Connection: Keep-Alive
Pragma: no-cache
--------
HTTP/1.0 200 OK
Date: Thu, 01 Jan 1970 00:17:21 GMT
Server: Boa/0.94.13
Connection: close
Content-type: text/html
X-Powered-By: PHP/4.3.10
P3P: CP="CAO DSP COR CURa ADMa DEVa OUR IND PHY ONL UNI COM NAV INT DEM
PRE"
Set-Cookie: test=test; path=/; domain=.huwag.net

Cookies are <b>NOT</b> enabled on your browser
--------

No matter how often I reload the page, MSIE refuses to ever create a a
"Cookie:" header.

I've tried numerous things, such as putting in a header("Location:
....?set=yes") and testing with $_GET['set'] instead of requiring manual
reload; removing and changing the P3P header in all imaginable ways;
not using output buffering or flushing the buffer at various points;
setting the security slider in MSIE options to all imaginable
positions; dropping the path and/or domain part of the setcookie();
tried cookies with several different expiration times set (a few
minutes or a few days in the future, far in the future, in the past,
etc.); and a some other things I've forgot (probably to limit my
frustration ;-).

I'm getting the feeling I've missed something terribly obvious as I'm
rather new at PHP, but what is it?

I'd be very grateful for any help whatsoever. Oh and I'd gladly NOT use
MSIE, but that is not an option in this case, unfortunately.

--
Linards Ticmanis

May 16 '06 #1
1 1959

ti******@gmx.de wrote:
Hello,

I'm having trouble getting MSIE 6.0 (running on XP SP2) to accept a
cookie which works fine in both Firefox and wget. The web server is Boa
0.94.13 (a small embedded server) using PHP 4.3.10 for CGI.

Even with the lowest security settings in MSIE there is no cookie
acceptance, and no "Cookie:" HTTP header is being sent back by MSIE.


I don't have an answer but I had a similar problem yesterday. I logged
into the site that I'm building. I was logged out with each page. I
could not surf from one page to another, I was constantly kicked out.
The site uses sessions. Nothing had changed from the day before. I was
using FireFox. My browser was set to accept cookies. My browser was not
working with the session info. My co-worker, sitting right next to me,
using the same version of FireFox, was having no trouble with the site.
Today I logged back in. The problem was gone. The session-handling code
has not been changed. I'm using the same computer, the same FireFox
browser. Yesterday it did not work, today it worked as well as my co
workers.

Odd, to say the least.

May 18 '06 #2

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

2
by: Johnny | last post by:
Searched on google for any info relating to this before posting here but found none. I set up a web service using nusoap on apache php 4.3.8 on windows with error_reporting = E_ALL and had that...
1
by: Bob Bedford | last post by:
Hello, I come back with a problem very strange: This code works just fine with Firefox but not with MSIE. With MSIE only if the index is quite low it works, otherwise it shows the index 0 ...
3
by: Vivek | last post by:
Hi all, I have a problem in my web-app wherein I need to get the latest page from server on clicking of back button.. I know that it can be done by preventing/disabling the cache in jsp as ...
17
by: Bruno | last post by:
I have a feature that is hosted on a different domain from the primary one in a frame, and need to retain values in a cookie. example: A web page at one.com contains a frame which has a page...
9
by: Ike | last post by:
I have a username/sid pair for typical authentication. That is, for someone signing in under a given username, a sid is created, saved in both a cookie and the db on the server. This I am doing as...
4
by: Joseph Geretz | last post by:
We use a Soap Header to pass a token class (m_Token) back and forth with authenticated session information. Given the following implementation for our Logout method, I vastly prefer to simply code...
6
by: lucyh3h | last post by:
Hi, In one of my pages, I use javascript (AJAX) to populate one mulitple select field based on user's click event on another control. I noticed that when I navigate back to this page by clicking...
7
by: mavigozler | last post by:
IE7 does not appear to set an event on contained text inside SPAN elements whose 'onclick', 'onmouseover', and 'onmouseout' events, defying the HTML recommendation. Firefox appears to conform. ...
12
by: Pankaj | last post by:
I have st a cookie that would last for 30 days. If I put a line <img src="http://www.example.com/readcookie.php" width="1" height="1"in a php file, I cannot read the cookie if I use IE7. However,...
0
by: ryjfgjl | last post by:
ExcelToDatabase: batch import excel into database automatically...
0
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
1
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: jfyes | last post by:
As a hardware engineer, after seeing that CEIWEI recently released a new tool for Modbus RTU Over TCP/UDP filtering and monitoring, I actively went to its official website to take a look. It turned...
0
by: ArrayDB | last post by:
The error message I've encountered is; ERROR:root:Error generating model response: exception: access violation writing 0x0000000000005140, which seems to be indicative of an access violation...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
1
by: Defcon1945 | last post by:
I'm trying to learn Python using Pycharm but import shutil doesn't work
0
by: af34tf | last post by:
Hi Guys, I have a domain whose name is BytesLimited.com, and I want to sell it. Does anyone know about platforms that allow me to list my domain in auction for free. Thank you
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome former...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.