session handling for hub server