//save username and password to cookie
public function save_cookie($user, $pass)
{
$cookie = array(
'name' => 'user',
'value' => $user,
'expire' => $this->cookie_life,
'domain' => $this->cookie_dname,
'path' => '/',
'prefix' => '',
'secure' => FALSE
);
$cookie2 = array(
'name' => 'pass',
'value' => $pass,
'expire' => $this->cookie_life,
'domain' => $this->cookie_dname,
'path' => '/',
'prefix' => '',
'secure' => FALSE
);
$this->input->set_cookie($cookie); //save info to cookie
$this->input->set_cookie($cookie2); //save info to cookie
}
Thanks in advanced.
