Welcome Guest, Not a member yet? Register   Sign In
Yet another problem with Session with DB
#1

[eluser]R_Nelson[/eluser]
this is how i set the DB session
Code:
function is_logged_in()
    {
        $CI =& get_instance();    
        $is_logged_in = $CI->session->userdata('is_logged_in');
        if(!isset($is_logged_in) || $is_logged_in != true)
        {                
            return false;
        }else{
            return true;
        }        
    }
it works just fine but what i'm having problems with is if i shut down firefox and come back in i have 2 sessions in the DB or if i login via IE or another computer what i would like to do is purge the older one from the database i know how to remove it but i need help with checking to see if there is more than 1 and witch one is older!


Messages In This Thread
Yet another problem with Session with DB - by El Forum - 04-19-2011, 10:30 AM
Yet another problem with Session with DB - by El Forum - 04-19-2011, 10:40 AM
Yet another problem with Session with DB - by El Forum - 04-19-2011, 10:53 AM
Yet another problem with Session with DB - by El Forum - 04-19-2011, 01:56 PM
Yet another problem with Session with DB - by El Forum - 04-20-2011, 02:12 PM
Yet another problem with Session with DB - by El Forum - 04-20-2011, 02:17 PM
Yet another problem with Session with DB - by El Forum - 04-20-2011, 02:24 PM
Yet another problem with Session with DB - by El Forum - 04-20-2011, 03:51 PM
Yet another problem with Session with DB - by El Forum - 04-20-2011, 07:10 PM
Yet another problem with Session with DB - by El Forum - 04-21-2011, 03:25 AM



Theme © iAndrew 2016 - Forum software by © MyBB