Hey guys
I'm quite new at PHP and i just inherited this application from the developer (Who has apparently also left the developer company )
Well, i managed to transfer it from the original server to the new application server. However, i get this strange error when i change the computer name of the host
E.G the computer name of the original server was test-server.local and the computer name of the new application server is production-server.local, then i get a login validation error
Does anyone know how i can go around this?
below is the login.php script
function validate_credentials()
{
// fieldname, error message, validation rules
$this->form_validation->set_rules('username','Username','trim|required');
$this->form_validation->set_rules('password','Password','trim|required');
if($this->form_validation->run() == FALSE)
{
$this->index();
}
else{
$this->load->model('membership');
$query = $this->membership->validate();
if($query)
{
$this->load->model('user_details');
$data = $this->user_details->userdetails();
$this->session->set_userdata($data);
redirect('welcome');
}
else{
$this->index();
}
}
}