Hi there,
I wondered if anyone could help me out with this:
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