Welcome Guest, Not a member yet? Register   Sign In
Session Class - Wiered Behavior
#3

[eluser]Twisted1919[/eluser]
Thats's simple . is the classic case :

Code:
if($this->database->login($username,$password) == TRUE)
{
$session_data = array('logged_in'=>TRUE , 'username'=>$username);
$this->session->set_userdata($session_data);
header('location:/user_panel.php');
die();
}
else
{
//Show some error
}
Where database is a model and login is a method that checks if the username and the password do match into database .
Is this the data you are asking for ?


Messages In This Thread
Session Class - Wiered Behavior - by El Forum - 07-15-2009, 04:19 AM
Session Class - Wiered Behavior - by El Forum - 07-15-2009, 05:17 AM
Session Class - Wiered Behavior - by El Forum - 07-15-2009, 06:58 AM
Session Class - Wiered Behavior - by El Forum - 07-15-2009, 07:19 AM
Session Class - Wiered Behavior - by El Forum - 07-15-2009, 12:45 PM
Session Class - Wiered Behavior - by El Forum - 07-16-2009, 10:15 AM
Session Class - Wiered Behavior - by El Forum - 07-17-2009, 12:50 AM
Session Class - Wiered Behavior - by El Forum - 07-17-2009, 03:59 AM
Session Class - Wiered Behavior - by El Forum - 08-10-2009, 07:56 PM
Session Class - Wiered Behavior - by El Forum - 08-11-2009, 12:07 AM
Session Class - Wiered Behavior - by El Forum - 11-19-2009, 08:45 AM
Session Class - Wiered Behavior - by El Forum - 11-19-2009, 10:13 AM



Theme © iAndrew 2016 - Forum software by © MyBB