Fixed mismatch in session ID handling between link gateway and link app server.