In ApiLogin, init session if necessary. This avoids a blank session ID when no sessio...