Hey guys.
function login($username, $password) {
$query_checkuser = "SELECT * FROM users WHERE username='".$username."' AND password='".md5($password)."'";
$query_checkuser = SlaveQuery($query_checkuser);
if(mysql_num_rowS($query_checkuser) == 1) {
setcookie("username", $username, time()+3600, "/", ".domain.net");
setcookie("password", md5($password), time()+3600, "/", ".domain.net");
return 1;
} else {
return 0;
}
}
For some reason, this code fails to set cookies in Internet Explorer 7, yet it works in firefox.
I did a test php script which just created a session cookie: setcookie("name","param"); and IE managed to handle that perfectly.
Note: I've echoed out both $username and $password, and they're both not null.