diclient/sessions: refactor common logic into sessionsRequest method