If the user has cancelled the connection dialog (meaning they did not want access), b will be false, the session will not have been opened.