I'm build this code, but i don´t work??? Sorry my english!!!
my login.php page
<?php
require 'functions.php';
if (authenticateUser($form_user_id, $form_password))
{
setcookie("cookie_passwd", $form_password);
setcookie("cookie_user", $form_user_id);
header("Location:http://$HTTP_HOST/$DOCROOT/menu.html");
exit();
} else {
header("Location:http://$HTTP_HOST/$DOCROOT/erro/erro_1.html");
exit();
}
?>
this script always return error_1.html page