set adapter for session handling