One of my customers can not login. Here's what happens. I have a login page on https://mysite.com/index.php
that checks for login via a class:
require("incl/loginclassfile.php");
$logincheck = $loginclass->logged();
if (!$logincheck) {
include("html/login_form.html");
exit;
} else {
include_once ("/content");
}
so far so good
Here's what's in the class:
function logged () {
global $HTTP_COOKIE_VARS;
$session_vars = explode(":", $HTTP_COOKIE_VARS['auth']);
$hash = md5($session_vars[0].$this->secret);
if ($hash != $session_vars[1]) {
return false;
}
else {
return array($session_vars[0], $session_vars[2]);
}
}
Now, this works just fine on all types of machines and systems. The problem, however persists on that particular new laptop with XP pro, IE Service Pack 2. I have compared all browser settings with a machine that works and could not find the problem. The coockies are enabled etc. The only difference I saw was .NET under Security Settings.
Could that be a problem? Any insight would be highly welcomed!!!