refactor OneSession() method for supporting multiple session