Removes the current session data from the database and regenerates the
        key.

def flush(self):
        """
        Removes the current session data from the database and regenerates the
        key.
        """

        self.clear()
        self.delete(self.session_key)
        self.create()