Thank you for your feedback!  I tried it but it didn't make a difference.  I
printed the var right after the set and it returns null.

        setcookie("cbcookie1",$domain,0,"/","mydomain.com");
        $domain       = $HTTP_COOKIE_VARS["cbcookie1"];
        echo "domain($domain)<br>";

> -----Original Message-----
> From: Aaron D. Turner [mailto:[EMAIL PROTECTED]]
> Sent: Monday, January 29, 2001 2:29 PM
> To: Eugene Yi (InfoSpace Inc)
> Cc: [EMAIL PROTECTED]
> Subject: Re: [PHP] Cookie with Netscape
> 
> 
> -----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 <[EMAIL PROTECTED]|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-----
> 
> 

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]

Reply via email to