Return same res_id for existing sessions
Check res_id is same for same session, different for new sessions