add session and socket