RE: [phplib] Cookie Not Being Set From: Brian Popp (bpopp <email protected>)
Date: 06/12/01

First, thanks for all the suggestions. Once again I am amazed at the eager
assistance this list provides.

I had a friend of mine try to access the page from a couple of the PC's at
his office. His worked fine. Fortunately, his development box did not. Both
are running recent versions of Internet Explorer 5. We did some
troubleshooting and found that while the server is sending the appropriate
"Set-Cookie" command, the one browser seems to disregard it (no cookie file
is created).

I created a simple script file like Holger recommended and when executed a
cookie file WAS created on the offending machine which tells me that the
machine is accepting cookies.

Could one of the other headers my app is sending be interfering? Is there a
limit to the size of the header in some browsers/proxy servers?

Here's the output from a telnet:

HTTP/1.1 200 OK
Via: 1.1 HEIMDALL
Connection: close
Content-type: text/html
Server: Microsoft-IIS/4.0
Date: Tue, 12 Jun 2001 22:07:51 GMT
X-Powered-By: PHP/4.0.3pl1
Expires: Mon, 26 Jul 1997 05:00:00 GMT
Last-Modified: Tue, 12 Jun 2001 22:07:51 GMT
Cache-Control: no-cache
Cache-Control: post-check=0, pre-check=0
Pragma: no-cache
Set-Cookie: tsession=bfe7783da99e0cd207ca5a8cf8bc962e; expires=Tue,
12-Jun-01 23
:07:51 GMT; path=/

-----Original Message-----
From: Holger Bahr [mailto:hb <email protected>]
Sent: Tuesday, June 12, 2001 3:30 PM
To: Brian Popp
Subject: Re: [phplib] Cookie Not Being Set

hey, try to write a simple php script to check if
their browsers generally acceppt cookies first

<?php

setcookie("test_cookie", "somevalue" .....

?>

Holger

---------------------------------------------------------------------
To unsubscribe, e-mail: phplib-unsubscribe <email protected>
For additional commands, e-mail: phplib-help <email protected>