Cookies in Mac? PHP Login script hanging...?

  • Thread starter Thread starter Broken M
  • Start date Start date
B

Broken M

Guest
So I wrote a function in a class that logs the user in:

public function UserLogIn($username,$password){
if (!isset($username) || !isset($password)) {
header("Location: ../dev/index.php");
}
else if(empty($username)) {
header("Location: ../dev/index.php");
}
else if(empty($password)) {
header("Location: ../dev/index.php");
}
else {
$user = addslashes($username);
$pass = $this->MD5SuperEncrypt($password);
$result = $this->dbQuery("SELECT * FROM user WHERE username = '$user' AND password = '$pass'");
$rowCheck = mysql_num_rows($result) or die(mysql_error());
if($rowCheck > 0){
while($row = mysql_fetch_array($result)){
$ID = $row['id'];
@session_start();
if($_SESSION['id'] = $row['id']){
@header("Location: ../dev/index.php");
}
}
}
else @header("Location: ../dev/index.php");
}
}


I've tested it on Linux (Ubuntu and Debian) and it works perfectly on Firefox 3 and Opera 9.5 on those two distributions. On Mac however, it hangs on both Firefox 3 and Safari. I have also tested it on Windows using Internet Explorer 7 and Firefox 3. Anyone have any idea as to why it hangs on Mac?
 
Back
Top