def flush(self):
        if self._is_dirty:
            self.driver.save(self._id, self.session, self._expires)
this method force system to do  session data persistence.
dataset/ETHPy150Open MitchellChu/torndsession/torndsession/session.py/SessionManager.flush