My Model : admin_login_model.php
Unable to view them in browser as shown in the image below
http://i.stack.imgur.com/fychj.png
i am working on CodeIgniter version 3
Can anyone tell me what is the issue
if ($email === $admin_email && $password = $password) {
echo 'credential match';
$this->load->helper('cookie');
if ($remember_me == '1') {
$email = $this->input->post('email');
$password = $this->input->post('password');
$remember = $this->input->post('remember_me');
$cookie1 = array(
'name' => 'email',
'value' => $email,
'expire' => '86400',
'domain' => base_url(),
'path' => '/admin/',
'prefix' => 'myprefix_',
'secure' => TRUE
);
$this->input->set_cookie($cookie1);
echo "<pre>";
var_dump($cookie1);
echo"</pre>";
echo 'Checked';
}
}
return TRUE; // if credential matches
} else {
return False;
}
Quoted Text Here