NYCPHP Meetup

NYPHP.org

[nycphp-talk] setcookie Pt. III

Chris Shiflett shiflett at php.net
Fri Sep 5 20:18:39 EDT 2003


--- 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/



More information about the talk mailing list