Michele Waldman wrote:
From http://domain/accout/login.php, if did setcookie('logged_in", "1",
$path="/");, like the documentation said too.
Does anyone know what I'm doing wrong here?
You mean other than relying on that cookie to tell you if the user is
logged in? Yeah, you are missing the expire parameter and assigning a
variable where you should just be setting the value (I know it will
work, but it isn't a good idea).
Try: setcookie('logged_in', 1, 0, '/');
--
Scott Mattocks
Author: Pro PHP-GTK
http://www.crisscott.com
_______________________________________________
New York PHP User Group Community Talk Mailing List
http://lists.nyphp.org/mailman/listinfo/talk
http://www.nyphp.org/show_participation.php