I'm having a problems with cookies. probably 95% of users are navigating my site without getting a session expired screen, and the versions of IE and Netscape both work fine. The users that are having problems say their browsers are set to accept cookies so I presume something is wrong with the code. Any help?
<?
$db = mysql_connect("localhost", "website", "password");
mysql_select_db("database",$db);
$result = mysql_query("SELECT * FROM account WHERE username LIKE '$username' AND password LIKE '$password'",$db);
if ($myrow = mysql_fetch_array($result)) {
$time = mktime()+86400;
$date = date("l, d-M-y H:i:s", ($time));
setcookie("username",$username,$date,"",".website.com");
setcookie("password",$password,$date,"",".website.com");
} else {}
?>