NYCPHP Meetup

NYPHP.org

[nycphp-talk] setcookie Pt. II

Chris Shiflett shiflett at php.net
Thu Sep 4 18:12:24 EDT 2003


--- Phil Powell <soazine at erols.com> wrote:
> MessageNo that deletes the cookie from what I understand instantly.

If you do not set an expiration time, it makes the cookie a session cookie, so
it persists in the browser session only and is not written to disk.

> So I don't set any time at all, but I still have to set the path in
> spite of setting no time!

header("Set-Cookie: nordicnet_registration=$uplinenumber");

Hope that helps.

Chris

=====
Become a better Web developer with the HTTP Developer's Handbook
http://httphandbook.org/



More information about the talk mailing list