Welcome Guest, Not a member yet? Register   Sign In
problem with LOGIN
#3

[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 !


Messages In This Thread
problem with LOGIN - by El Forum - 10-07-2010, 09:14 PM
problem with LOGIN - by El Forum - 10-08-2010, 05:40 AM
problem with LOGIN - by El Forum - 10-08-2010, 05:44 AM



Theme © iAndrew 2016 - Forum software by © MyBB