save: Save current state
This is a method of the Session class in the session module.
def save(&self) -> Result<()>