extract common session manager