add session basic code