Added a sessionManager for starting a session or ending it.#