NYCPHP Meetup

NYPHP.org

[nycphp-talk] setcookie Pt. III

Phil Powell soazine at erols.com
Sat Sep 6 03:07:35 EDT 2003


Tried all of those, Chris, they didn't set the cookie either.  Went back to

setcookie('nordicnet_registration', $registrationNumber, 0, '/');

And this time it worked.  I am at a loss.

Phil
----- Original Message ----- 
From: "Chris Shiflett" <shiflett at php.net>
To: "NYPHP Talk" <talk at lists.nyphp.org>
Sent: Friday, September 05, 2003 8:18 PM
Subject: Re: [nycphp-talk] setcookie Pt. III


> --- Phil Powell <soazine at erols.com> wrote:
> > I tried header("Set-cookie: nordicnet_registration=$registrationNumber;
> > path=\"/\"\n"); // FAILED
>
> The C in Set-Cookie is uppercase, the path is not quoted, and there should
not
> be a newline.
>
> header('Set-Cookie: var=value; path=/');
>
> Chris
>
> =====
> Become a better Web developer with the HTTP Developer's Handbook
> http://httphandbook.org/
> _______________________________________________
> talk mailing list
> talk at lists.nyphp.org
> http://lists.nyphp.org/mailman/listinfo/talk




More information about the talk mailing list