A session variable wont be set with IE7 if the session cookie name has an underscore in it.
This is a strange bug, at first I was thought to of believed it was a server side issue (clock out of sync). The tech support however did a test and it worked fine for them.
There are mixed results from different people. It’s very hard to get a definite answer.
function login ($email, $password)
{
$result = $this->_get_hash($this->users_table, $email); // Grab hash, password, and id from database.
if ($result) // Result Found
{
$password = sha1(sha1($this->salt.$result->hash.$password)); // Hash input password
if ($password === $result->password) // Passwords match?
{
$this->ci->session->set_userdata(array('id'=> $result->id));
return true;
}
}
return false;
}
Then check login with
function logged_in ()
{
return $var = ($this->ci->session->userdata('id')) ? true : false;
}
It worked locally for me. Then on the remote server it didn’t, but worked for the server tech over there.
I removed the underscore and it worked perfect. Stumped!
