Re: Weirdness with setcookie() (3rd time - come on people :)
| From: | jeremy brand | Date: | Tue, 14 Nov 2000 01:35:45 +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-25084@lists.php.net to get a copy of this message | ||
John,
I'm with you on this one. I too have never had _any_ issues at all
with setcookie() not doing what I expect it to be doing. I'm a HTTP
freak, BTW.
-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, John Donagher wrote:
> Date: Mon, 13 Nov 2000 16:25:22 -0500 (EST)
> From: John Donagher <john@webmeta.com>
> To: Joao Prado Maia <jmaia@kefta.com>
> Cc: jeremy brand <jeremy@nirvani.net>, php-general@lists.php.net
> Subject: Re: [PHP] Weirdness with setcookie() (3rd time - come on people :)
>
>
> If you're familiar with HTTP mechanics, it should be relatively easy to construct a manual
> request, see the redirect, follow the redirect, and then watch for the "SetCookie" lines
> in the response. cURL (http://curl.haxx.se) is a good program for this type of work if you want to
> at least abstract the connection handling. It should give you at least a finer idea of what exactly
> is happening.
>
> I point you in this direction only because I've used setcookie() for years without ever
> experience erratic behavior, apart from the obvious issues with sending a header before the cookie
> which isn't so much erratic behavior as a lack of understanding about HTTP mechanics (not that
> anyone fully understands them anyway :)
>
> John
>
> On Mon, 13 Nov 2000, Joao Prado Maia wrote:
>
> >
> > On Mon, 13 Nov 2000, jeremy brand wrote:
> >
> > > Could it be that you possibly have output going to your browser before
> > > the setcookie() is called?
> >
> > No it isn't that, because if it was that, the page would not be even
> > redirecting, since the header() call also has that constraint.
> >
> > Everything works, the cookie is just not set. I already even used
> > print_r($cookie_value) to print the dump of the array I'm trying to set
> > the cookie to, and the values are all there.
> >
> > Joao
> >
> > --
> > Joao Prado Maia
> > Web Developer
> > Kefta, Inc.
> > T: (415) 391-6881 ext 8008
> > F: (415) 391-7079
> >
> >
> >
>
> --
>
> John Donagher
> Application Engineer
> Intacct Corp. - Powerful Accounting on the Web
> 408-395-0989
> 720 University Ave.
> Los Gatos CA 95032
> www.intacct.com
>
> -----BEGIN PGP PUBLIC KEY BLOCK-----
> Version: GnuPG v1.0.1 (GNU/Linux)
> Comment: For info see http://www.gnupg.org
>
> mQGiBDnCZ1oRBACFgkFCV6p3dWic1qm1FLhip5beIyzZSt+ccTDYQQdPZA/t5H+k
> PZ7ZFBIUrXz/oEqwQwlEKlg8JQqg7hgtcL+xrIJ0BInLeSJG4lvvB551g59Thr7/
> OsdxNVxKci775+K+GkdAz4xcULMuB+QE7t665Ri46EAS8ALos5UG6DGmhwCguD0v
> 1cxwy/KlKr+oi4sWM9caueED/RmjiSD3vmBZQt6PMisVe1AmkEf6cJoemduCSJxu
> 0eMz/LIeu+CqfpuJH2N/dZ3hRj9xMSHF4l71wKqV99zhm58kDGwG1u3yVzULPDqz
> 0yL+8nunlkoOUyn3zOnh3Zmz4POFVMZQ5oian3QkLllUwly5JCi5tWULxZ2vOkb0
> zzjuA/4jigNxYV4NAyCl+wAbnyzk9/Iz8EHv4/0Ex8ytlcMtvBJKa9HjJxlyIl74
> yOILHk3+GSAdM0b3ZmbavpoCpebinOMBhqEVBwCI4VUIAqf86gx+2dKBGxfKPnU4
> Xxvqs/BOl/EbeJjyd4uieYndGRaWg+kYXqZ7SxrlFN24fohnd7QgSm9obiBEb25h
> Z2hlciA8am9obkB3ZWJtZXRhLmNvbT6IVgQTEQIAFgUCOcJnWgQLCgQDAxUDAgMW
> AgECF4AACgkQIt6tVu6+jd3SHwCgjssFktMXf8NjE9JBR+sJ2gDIsW8An0CFNdFd
> dU+DJYC6ogYP9AsVfM27uQENBDnCZ2MQBAD8E0qe1gBKjtoRmyiyORtwhOz/2XZE
> mqiZN2NouAUWRRZd4dHggFAA1jUsp2MVIZZQyY9ajNVy3Oaxj5kYz8LR5GItxxcD
> jC8RFXKM40ZfTJeR7fH6eJa689w+le71Tt4ALyN4xcjSWuksr8795AhHFjonDi8D
> rgGIq6GtWvi/KwADBgQAmeBbcjPzhqR2M8TdvEyNfVTQSSp/RNoTjNNWpHui8V0p
> kiQ49tbsqeMjXGToGgMugfmrX77JidXyuVjgYjT9xUdaaA25qKAR75M9izDliT7Y
> h5L+QZTAw0/5X9go7XK3WI3LYfFrp4TP0veXgSWxDqccqsRzWKW7IoXsliTCbVqI
> RgQYEQIABgUCOcJnYwAKCRAi3q1W7r6N3YIcAKCkJMTPLu6tOPnXPl2s3xmnSawy
> BACeOx83WlBhVScYWo+BUzntJ6ks4T0=
> =OkJU
> -----END PGP PUBLIC KEY BLOCK-----
>
>
> --
> 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
>
>