public static function kill_all_sessions() {
        global $DB;

        self::terminate_current();

        self::load_handler();
        self::$handler->kill_all_sessions();

        try {
            $DB->delete_records('sessions');
        } catch (\dml_exception $ignored) {
            // Do not show any warnings - might be during upgrade/installation.
        }
    }
public static function kill_all_sessions() {
        global $DB;

        self::terminate_current();

        self::load_handler();
        self::$handler->kill_all_sessions();

        try {
            $DB->delete_records('sessions');
        } catch (\dml_exception $ignored) {
            // Do not show any warnings - might be during upgrade/installation.
        }
    }
public static function kill_all_sessions ( ) { global $ DB ; self :: terminate_current ( ) ; self :: load_handler ( ) ; self :: $ handler -> kill_all_sessions ( ) ; try { $ DB -> delete_records ( 'sessions' ) ; } catch ( \ dml_exception $ ignored ) { // Do not show any warnings - might be during upgrade/installation. } }
Terminate all sessions unconditionally.
Terminate all sessions unconditionally .