bugzid 4018: improve performance by using session ids for task polling