public static function kill_session($sid) {
        global $DB;

        self::load_handler();

        if ($sid === session_id()) {
            self::write_close();
        }

        self::$handler->kill_session($sid);

        $DB->delete_records('sessions', array('sid'=>$sid));
    }
public static function kill_session($sid) {
        global $DB;

        self::load_handler();

        if ($sid === session_id()) {
            self::write_close();
        }

        self::$handler->kill_session($sid);

        $DB->delete_records('sessions', array('sid'=>$sid));
    }
public static function kill_session ( $ sid ) { global $ DB ; self :: load_handler ( ) ; if ( $ sid === session_id ( ) ) { self :: write_close ( ) ; } self :: $ handler -> kill_session ( $ sid ) ; $ DB -> delete_records ( 'sessions' , array ( 'sid' => $ sid ) ) ; }
Terminate give session unconditionally.
@param string $sid
Terminate give session unconditionally .