[nycphp-talk] setcookie Pt. II
Chris Shiflett
shiflett at php.net
Thu Sep 4 18:21:28 EDT 2003
--- Phil Powell <soazine at erols.com> wrote:
> 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?
This should do it:
header("Set-Cookie: nordicnet_registration=$uplinenumber; path=/Main_page/");
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