Session ID returned correctly

Session ID was not returned correctly after creating a session.