public static function clear()
    {
        try {
            $id = session_id();
            $_SESSION = array();
            session_write_close();
            # $db = Database::database();
            # $db->prepare('DELETE FROM sessions WHERE session_id = ?')->execute([$id]);
            sessions::Delete($_SESSION,$id,[]);
            session_start();
        } catch (\PDOException $e) {
            sortDump($e);
        }
    }