set session in memory