[thelist] PhP- cookies enigma !
Melissa Phelps Firestone
liss at frameshift.com
Fri Apr 6 09:34:23 CDT 2001
You almost certainly have some whitespace being written before your
setcookie is called. The setcookie has to be the absolute first characters
sent - no whitespace, nothing.
HTH,
--Liss
> Hey. I have this script running at
> http://www.cfusions.com/tt2k1/index.php3 and I have a problem with my
> setcookie() function.
>
> You may login under Nicole Baxter , password nicole and see the
> short-lived ( depending on your connection speed) error message.
>
> Everytime the login function is called, we always get an error message
> telling me I am trying to set the cookie after the header has been sent.
> According to my script, the header is sent AFTER the cookie.
> But then again, I'm new to php.
>
> I have a tcp/ip dump if it can help, I can t see my cookie in the dump (
> maybe cuz it wasn t set?) Any guidance would be greatly appreciated, never
> thought I'd spend HOURS fumbling with.... cookies.
More information about the thelist
mailing list