setState

Sets the current state of the session.