Redesign of session support and in memory implementation