Refactor SessionManager for multiaccounting