use session to record

Change-Id: If103bd35b86bd9796e6f8a4eaff4460b6b2566c0