ID: 14255
Comment by: pletiplot at seznam dot cz
Reported By: kris dot wilkinson at titancs dot com
Status: No Feedback
Bug Type: HTTP related
Operating System: Debian 2.2.19
PHP Version: 4.0.6
Assigned To: shiflett
New Comment:
$SessionID = md5(uniqid(""));
SetCookie("sigla_cookie", $loginname, time()+3600, $DIRECTORY);
SetCookie("SessionID", $SessionID, time()+3600, $DIRECTORY);
The first is not send at all, I traced the tcpdump.
The second is send normaly.
If I change order, I stil get the second a do not get the first.
The same script on other machine PHP 4.2.2 works.
PHP 4.0.6
Server version: Apache/1.3.20 (Unix) (Red-Hat/Linux)
Server built: Sep 5 2001 23:12:29
Previous Comments:
------------------------------------------------------------------------
[2003-11-24 21:10:00] pletiplot at seznam dot cz
$SessionID = md5(uniqid(""));
SetCookie("sigla_cookie", $loginname, time()+3600, $DIRECTORY);
SetCookie("SessionID", $SessionID, time()+3600, $DIRECTORY);
The first is not send at all, I traced the tcpdump.
The second is send normaly.
If I change order, I stil get the second a do not get the first.
The same script on other machine PHP 4.2.2 works.
PHP 4.0.6
Server version: Apache/1.3.20 (Unix) (Red-Hat/Linux)
Server built: Sep 5 2001 23:12:29
------------------------------------------------------------------------
[2003-02-05 13:50:19] mike at cibal dot es
Oh, I forgot to mention IN THE PREVIOUS POSTING, MY SETUP IS AS
FOLLOWS:
PHP/4.0.6
APACHE 1.3.22 (Unix)
------------------------------------------------------------------------
[2003-02-05 13:50:17] mike at cibal dot es
Oh, I forgot to mention IN THE PREVIOUS POSTING, MY SETUP IS AS
FOLLOWS:
PHP/4.0.6
APACHE 1.3.22 (Unix)
------------------------------------------------------------------------
[2003-02-05 13:44:51] mike at cibal dot es
I have a PHP script that sets a cookie as follows:
$cookie_expire = time()+3600;
$cookie_name= "loginpipoclub";
$value= "mike";
setcookie ($cookie_name, $value, $cookie_expire);
THis IS NOT WORKING anymore (I swear it did work
!). So I have finally tried to find out why the cookie is not being
set by using Telnet. The response I get in the header shows that the
cookie is expired, but I cannot understand WHY!!! THE server time
shows the correct time/date according to my system and my watch BUT THE
COOKIE IS MARKED AS DELETED (SEE SetCookie: header below) despite the
fact that I have set it to expire at time() + 3600. In fact, the
expiry date is marked to be last year.
HERE IS THE RESPONSE FROM THE SERVER USING TELNET ON PORT 80:
HTTP/1.1 200 OK
Date: Wed, 05 Feb 2003 19:40:29 GMT
Server: Apache/1.3.22 (Unix) mod_ssl/2.8.5 OpenSSL/0.9.6a PHP/4.0.6
mod_perl/1.0
X-Powered-By: PHP/4.0.6
Set-Cookie: loginpipoclub=deleted; expires=Tue, 05-Feb-02 19:40:39 GMT;
path=/;m
Transfer-Encoding: chunked
Content-Type: text/html
PLEASE, CAN ANYONE SHED SOME LIGHT ON THIS. I have been looking all
over the internet on various forums BUT i cannot get a solution to the
problem,
I am using PHP/MYSQL on a unix system in the US, which i am accessing
from telnet in spain. My browser is Internet Explorer 6.0.128
(initially i thought it was a browser issue since I had this working on
other browsers, but the telnet proof shows that it is not a browser
issue, the cookie has in fact been marked as DELETED!!!!).
regards
Mike Ferrer
------------------------------------------------------------------------
[2002-03-07 00:00:05] php-bugs at lists dot php dot net
No feedback was provided for this bug for over a month, so it is
being suspended automatically. If you are able to provide the
information that was originally requested, please do so and change
the status of the bug back to "Open".
------------------------------------------------------------------------
The remainder of the comments for this report are too long. To view
the rest of the comments, please view the bug report online at
http://bugs.php.net/14255
--
Edit this bug report at http://bugs.php.net/?id=14255&edit=1