NYCPHP Meetup

NYPHP.org

[nycphp-talk] Cookie

Michele Waldman mmwaldman at nyc.rr.com
Thu Mar 19 08:59:04 EDT 2009


I tried to set cookie from a subdirectory for the whole domain, but it
didn't work.

 

>From http://domain/accout/login.php, if did setcookie('logged_in", "1",
$path="/");, like the documentation said too.

 

But it still set it for the entire domain.  I also tried:
setcookie('logged_in", "1", $path=".."); setcookie('logged_in", "1",
$path="/.."); and  setcookie('logged_in", "1", $path="/../")

 

Does anyone know what I'm doing wrong here?

 

Michele

 

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.nyphp.org/pipermail/talk/attachments/20090319/fc46a77f/attachment.html>


More information about the talk mailing list