Re: Cookie with Netscape

From: Date: Mon, 29 Jan 2001 22:29:07 +0000
Subject: Re: Cookie with Netscape
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-37152@lists.php.net to get a copy of this message
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 On Mon, 29 Jan 2001, Eugene Yi (InfoSpace Inc) wrote: > I set up a cookie using the following command and it works fine under IE but > not in Netscape. Am I doing something wrong? > > setcookie("mycookie[1]",$domain,"","/","mydomain.com"); Should be: setcookie("mycookie[1]", $domain, 0, "/", "mydomain.com"); the expire time is an integer, not a string. - -- Aaron Turner <aturner@pobox.com|synfin.net|linuxkb.org> URI:www.synfin.net They that can give up essential liberty to obtain a little temporary safety deserve neither liberty nor safety. -- Benjamin Franklin pub 1024D/F86EDAE6 Sig: 3167 CCD6 6081 0FFC B749 9A8F 8707 9817 F86E DAE6 All emails by me are PGP signed; a lack of a signature indicates a forgery. I have retired my PGP 2.6.2 key: FBE1 CEED 57E4 AB80 596E 60BF 451B 20E8 -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.0.4 (GNU/Linux) Comment: Public key at: http://www.synfin.net/aturner/pgpkey.asc iEYEARECAAYFAjp17rkACgkQhweYF/hu2ubpNgCdH1/7RrnWldqfUfjJntSSe3D9 lhEAnjquZx1k+m+LgPzZV0xSr/k15iNJ =iVu3 -----END PGP SIGNATURE-----

« previous php.general (#37152) next »