NYCPHP Meetup

NYPHP.org

[nycphp-talk] setcookie Pt. II

Phil Powell soazine at erols.com
Thu Sep 4 18:14:31 EDT 2003


Thanx for the header() tip, however, I noticed that the path is not set and
it will have to be as the cookie is being set within
/Main_page/registrering.php which will set the path to "/Main_page" instead
of "/" which is what I want.  How do I notate that?

Phil
----- Original Message ----- 
From: "Chris Shiflett" <shiflett at php.net>
To: "NYPHP Talk" <talk at lists.nyphp.org>; <psaw at pswebcode.com>
Sent: Thursday, September 04, 2003 6:12 PM
Subject: Re: [nycphp-talk] setcookie Pt. II


> --- 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/
> _______________________________________________
> talk mailing list
> talk at lists.nyphp.org
> http://lists.nyphp.org/mailman/listinfo/talk




More information about the talk mailing list