[eluser]Bainzy[/eluser]
alos just noticed one thing !
in you public function doLogin you have the following :
Code:
$data_sess=array(
"username" => $data['username'],
"level" => $data['level'],
);
//$this->session->set_userdata($data_sess);
The line of code that creates the session you have commented out !
change to :
Code:
$data_sess=array(
"username" => $data['username'],
"level" => $data['level'],
);
$this->session->set_userdata($data_sess);
Also you may want to take a look into the form_validation library ... check the userguide for more information ... you can contrust a much safer login usign this !