Fix bug where session key was not being read as a string on createSessionObject.