Session.php
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);
        }
    }
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);
        }
    }
This will remove our session data from our scope and the database