sorry I'll elaborate I am setting a cookie on a login script (index.php) with the following code : - while($row=mysql_fetch_array($result)){ setcookie ("username", $row["username"], time()+604800); setcookie ("userid", $row["urn"], time()+604800); } As this is successful login I am then redirecting using the following code to redirect to the home page print "<script language=\"JavaScript\">"; print "window.location = 'home.php' "; print "</script>"; then once in the home.php page I am simply trying to display the name to welcome the user : - Hello and welcome <?php echo $_COOKIE["username"] ?> As I said this works fine under Apache and Php on windows yet on Apache for linux all that is displayed is "Hello and welcome" as the cookie holds no value. In edition if I run the following code on the home.php page <?php echo $_COOKIE["username"]."<BR>"; echo $HTTP_COOKIE_VARS["username"]."<BR>"; // Another way to debug/test is to view all cookies print_r($_COOKIE); ?> I get the following output : - Array ( [PHPSESSID] => 686b88e663c215f4d150fbaf620df7ee ) whereby the first two statements are blank Your help would be appreciated James