[eluser]steel_slasher[/eluser]
i want to edit the sessions lib so that it would not only check to see if the session id and useragent match but also if an email address has been assigned to that session id as i cannot think of any other to do it. After looking at the lib i figured this should be right.
Code:
if (isset($session['email']))
{
$check=$this->CI->db->simple_query("SELECT `session_id` FROM `ci_sessions` WHERE `email` = '{$session['email']}'");
if($check=FALSE){
$this->sess_destroy;
return FALSE;
}
i am not going to run it as it will probably lead to huge errors and i am not an expert on CI so i just want to get this code checked before i run it.