add session and log