NYCPHP Meetup

NYPHP.org

[nycphp-talk] setcookie and localhost

Chris Shiflett shiflett at php.net
Thu Sep 18 21:08:22 EDT 2003


--- Michael Southwell <southwell at dneba.com> wrote:
> a script using setcookie works fine on a remote host but the
> cookie doesn't work on localhost (where I was testing)--the
> cookie is written but not read.

Are you setting a domain? You can always omit that to use the current domain,
such as:

header('Set-Cookie: foo=bar');

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