Hi again, I have the following code to first start a session and then write a cookie... is that so hard? Well it is starting the session but the cookie is not being set. see:
$row = mysql_fetch_array($result); $_SESSION["user"] = $row[member_id]; if ($_POST["autologin"] == "yes") { $id = $_SESSION["user"]; setcookie("memberlogin", $id, time()+60*60*24*365); header("Location: $CFG->wwwroot"); exit(); } else { header("Location: $CFG->wwwroot"); exit(); } What can it be? No error is posted. Thanks in advanced, Cesar Aracena -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php