Adds support for reconnecting to an eisting session.