session architecture