public function close(): void {
        if ($this->is_active()) {

            // Set the last active timestamp
            $this->_data['last_active'] = time();

            // Write and close the session
            config('debug') ? session_write_close() : @session_write_close();
        }
    }