Re: Weirdness with setcookie() (3rd time - come on people :)

From: Date: Tue, 14 Nov 2000 00:42:02 +0000
Subject: Re: Weirdness with setcookie() (3rd time - come on people :)
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-25072@lists.php.net to get a copy of this message
Could it be that you possibly have output going to your browser before the setcookie() is called? -jeremy brand http://www.JeremyBrand.com/Jeremy/Brand/Jeremy_Brand.html for more --------------------------------------------------------------------- We cannot do everything at once, but we can do something at once. -- Calvin Coolidge On Mon, 13 Nov 2000, Joao Prado Maia wrote: > Date: Mon, 13 Nov 2000 16:41:43 -0800 (PST) > From: Joao Prado Maia <jmaia@kefta.com> > To: jeremy brand <jeremy@nirvani.net> > Cc: Joao Prado Maia <jmaia@kefta.com>, php-general@lists.php.net > Subject: Re: [PHP] Weirdness with setcookie() (3rd time - come on people :) > > > On Mon, 13 Nov 2000, jeremy brand wrote: > > > Make sure you pass all options to setcookie that you require: > > > > int setcookie (string name [, string value [, int expire [, string > > path [,string domain [, int secure]]]]]) > > > > If you want it to not be a session cookie, you have to set an expire > > time. You may also want to set a path, and a domain (remember, > > the leading period -- .mydomain.com). > > As I said on the email, I already tried with all the values, and with just > the "name" and "value", and nothing works. I also already tried setting > the domain to ".blah.com" and nada. > > The same code that didn't work now with PHP4.0.3 (no patch level > thingie) used to work perfect under PHP3.0.15. > > This is driving me crazy, and nothing seem to fix this problem. > > Joao > > -- > Joao Prado Maia > Web Developer > Kefta, Inc. > T: (415) 391-6881 ext 8008 > F: (415) 391-7079 > > > -- > PHP General Mailing List (http://www.php.net/) > To unsubscribe, e-mail: php-general-unsubscribe@lists.php.net > For additional commands, e-mail: php-general-help@lists.php.net > To contact the list administrators, e-mail: php-list-admin@lists.php.net > >

« previous php.general (#25072) next »